Commit Graph

17493 Commits

Author SHA1 Message Date
Ronald Oussoren f2db4de4d8 Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list. 2011-03-14 18:46:50 -04:00
R David Murray cd37dfcfac Harmonize linesep docstrings, and fix the quoting of \r\n 2011-03-14 18:35:56 -04:00
Ronald Oussoren e72e161851 Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list
Patch by Scott Wilson.
2011-03-14 18:15:25 -04:00
R David Murray f8b9dfd9a1 #11496: skip history test if clear_history is not available.
Patch by Natalia B. Bidart.
2011-03-14 17:10:22 -04:00
briancurtin 525c25d42f Fix #11491. When dbm.open was called with a file which already exists and
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 16:03:54 -04:00
briancurtin 94eceeb89c Fix #11491. When dbm.open was called with a file which already exists and
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 15:35:35 -04:00
Victor Stinner 98dbba5d20 Issue #3080: Use repr() to format the module name on error 2011-03-14 15:15:47 -04:00
Victor Stinner ccbf475dfd Fix imp.cache_from_source() if the directory name contains a dot
If the directory name contains a dot but not the filename, don't strip at the
dot.
2011-03-14 15:05:12 -04:00
Ezio Melotti d9a7c4b8e5 Skip test that requires zlib when zlib is not available. 2011-03-14 18:57:02 +02:00
R David Murray 1a5201f80d Merge #11488 patch from 3.1. 2011-03-14 09:57:03 -04:00
R David Murray d89ee79d19 #11488: Add tests for writelines method of SpooledTemporaryFile.
Patch by Evan Dandrea.
2011-03-14 09:55:46 -04:00
R David Murray 6924bd72f5 Fix whitespace 2011-03-13 22:48:55 -04:00
R David Murray 384069c2e8 Merge fix for #11490 from 3.1. 2011-03-13 22:26:53 -04:00
R David Murray d79210a0e4 #11490: EACCES can also mean command not found 2011-03-13 22:13:09 -04:00
Antoine Pitrou d3cccd2a60 Issue #11223: Fix test_threadsignals to fail, not hang, when the
non-semaphore implementation of locks is used under POSIX.
2011-03-13 19:14:21 +01:00
Mark Dickinson a7f0dffb8d Merge #11131 2011-03-12 11:17:26 +00:00
Mark Dickinson 37a79fb75b Issue 11131: Fix sign of zero result on decimal.Decimal plus and minus operations in ROUND_FLOOR rounding mode. 2011-03-12 11:12:52 +00:00
Ned Deily 2d12f96658 Issue #5622: merge fix from 3.1. 2011-03-09 02:42:23 -08:00
Ned Deily d2853180df Issue #5622: Fix curses.wrapper to raise correct exception if curses
initialization fails.
2011-03-09 02:36:51 -08:00
Vinay Sajip d9512e9ac1 Issue #11444: Merge fix from 3.1. 2011-03-08 22:53:21 +00:00
Vinay Sajip c8ab6eeb01 Issue #11444: Lock handlers while flushing/closing during shutdown. 2011-03-08 22:49:57 +00:00
Benjamin Peterson 3b59f332b6 merge 3.1 2011-03-07 22:51:59 -06:00
Benjamin Peterson 49d7149e6d transform izip_longest #11424 2011-03-07 22:50:37 -06:00
Vinay Sajip 9f9991c2f5 #Issue 11424: added equivalent fixes for dictConfig. 2011-03-07 18:02:57 +00:00
Vinay Sajip e783553daa #Issue 11424: merged fix from 3.1. 2011-03-07 17:59:50 +00:00
Vinay Sajip 3f84b07816 Issue #11424: Fix bug in determining child loggers. 2011-03-07 17:49:33 +00:00
Senthil Kumaran dab6780c9e merge from 3.2 2011-03-20 10:45:41 +08:00
Brian Quinlan 142fad4b6b Use WeakSets rather than manual pruning to prevent unbounded growth of dead thread references. 2011-03-20 13:11:11 +11:00
Senthil Kumaran 833d91204f closes issue11609. buildbot related failures in the test_urllibnet. 2011-03-20 06:13:36 +08:00
Antoine Pitrou 89ba56d5fb Skip crasher tests 2011-03-19 19:54:01 +01:00
Antoine Pitrou 1679f4daa1 Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
unbuffered pipes, such that select() works properly on them.
2011-03-19 17:06:22 +01:00
Senthil Kumaran a4d5b0cb62 Closes issue11563 test_urllibnet is triggering a ResourceWarning. Patch by Jeff McNeil. 2011-03-19 17:47:26 +08:00
Nick Coghlan 952c0782b3 Last attempt to get compiler recursion crasher to fail reliably across platforms before giving up and skipping it as unreliably platform dependent 2011-03-19 15:22:59 +10:00
Raymond Hettinger 7e4c168385 Minor optimization -- factor a constant expression out of the inner-loop. 2011-03-18 15:09:10 -07:00
briancurtin f84f3c3d2d Fix #11596. When bz2 isn't available, skip test_bz2_ext_fake. 2011-03-18 13:03:17 -05:00
Raymond Hettinger 6827294e05 Speed-up search for hidden names by using a set instead of a tuple. 2011-03-18 02:22:15 -07:00
Ross Lagerwall 7807c3545d Issue #10812: Add some extra posix functions to the os module. 2011-03-17 20:20:30 +02:00
Brett Cannon eb8cee8383 merge 2011-03-17 11:16:38 -07:00
Michael Foord e9ff2ef204 Closes issue 10979. unittest buffering now works with class and module setup and teardown 2011-03-17 13:58:22 -04:00
Nick Coghlan f694a409aa Give more info in verbose mode when checking crashers, and stress the stack even more in the compiler crasher 2011-03-17 11:04:34 -04:00
Senthil Kumaran 1da1906871 Merge from 3.2 2011-03-17 16:48:26 +08:00
Nick Coghlan bab07a652d Tidy up merge with remote 2011-03-16 22:11:09 -04:00
Nick Coghlan ce4ee1f34d Merge from 3.2 2011-03-16 21:48:30 -04:00
Brett Cannon ecc2db5152 Remove an overly specific exception message test. 2011-03-16 20:11:52 -04:00
Nick Coghlan c95ec3d560 Exercise crashers to ensure they are still covering known error cases 2011-03-16 19:52:14 -04:00
R David Murray cfec350e63 Merge #11401 fix from 3.2. 2011-03-16 18:28:07 -04:00
R David Murray 832ebeb9d4 Merge #11578 test from 3.2. 2011-03-16 17:33:24 -04:00
Michael Foord 4b31818042 merge 3.2 2011-03-16 17:28:51 -04:00
Reid Kleckner 04055f0cf9 Merged with hg.python.org. 2011-03-16 17:09:41 -04:00
Reid Kleckner da9ac728a8 Bump up the subprocess timeouts even more. :( 2011-03-16 17:08:21 -04:00
Reid Kleckner 2b228f0d9b Include the timeout value in TimeoutExpired.
This was the original intention, but it wasn't threaded all the way through due
to 'endtime'.  Also added a trivial assertion to get coverage of __str__.
2011-03-16 16:57:54 -04:00
R David Murray bb35299fcd Merge #9298 fix. 2011-03-16 16:14:43 -04:00
Nick Coghlan e047f66644 Merge fix for #11560 from 3.2 2011-03-16 14:06:31 -04:00
Nick Coghlan 1d7a8879c6 Merge from remote 2011-03-16 13:55:58 -04:00
Nick Coghlan 7bfa67f380 Merge fix for #11548 from 3.2 2011-03-16 13:55:03 -04:00
Ross Lagerwall ba102ec10d Issue #5870: Add subprocess.DEVNULL constant. 2011-03-16 18:40:25 +02:00
Ronald Oussoren 4d5fe33a70 Merge with 3.2 2011-03-16 09:44:26 -04:00
Ezio Melotti b88ed1549e #11565: Merge with 3.2. 2011-03-16 11:38:59 +02:00
Jesus Cea 607476bf1d Merge: Close issue #8600: test_gdb failures because innocuous warnings 2011-03-16 01:34:29 +01:00
Michael Foord ed1fce2ee5 merge 3.2 2011-03-15 19:22:19 -04:00
Brett Cannon 55afb1a263 Undo an accidental commit. 2011-03-15 18:48:52 -04:00
Brett Cannon f47e3ac7b7 merge 2011-03-15 18:45:59 -04:00
Brett Cannon b8daeda523 merge 2011-03-15 18:45:38 -04:00
Brett Cannon e73b2bb415 Be more thorough in blanking out methods grabbed off of an fp. 2011-03-15 18:45:13 -04:00
Raymond Hettinger 5bd75b8726 whitespace fix 2011-03-15 15:07:38 -07:00
Raymond Hettinger f932f747e6 whitespace fix 2011-03-15 15:06:09 -07:00
Raymond Hettinger 0661e91fed Issue 11510: Fix BUILD_SET optimizer bug. 2011-03-15 15:03:36 -07:00
Brett Cannon b637680f7e Properly close a file in test_os. 2011-03-15 17:38:22 -04:00
Brett Cannon ee877a08e9 Don't leave around a test symlink file. 2011-03-15 17:32:14 -04:00
Brett Cannon f434ba9e4e merge 2011-03-15 17:23:21 -04:00
Brett Cannon f30645d552 Close a stream properly in test.test_pulldom.
Closes issue #11550. Thanks to Ben Hayden for some inspiration on the
solution.
2011-03-15 17:22:52 -04:00
Benjamin Peterson 47afc2af79 PyErr_Print can leave sys.last_traceback hanging around; kill it 2011-03-15 15:54:50 -05:00
Benjamin Peterson 8af4919b37 merge heads 2011-03-15 15:21:03 -05:00
Benjamin Peterson c217a4b71a should use 'is' here 2011-03-15 15:18:47 -05:00
Antoine Pitrou 8213cafd62 Merge 2011-03-15 21:10:33 +01:00
Antoine Pitrou 0e63f59492 Merge fix for issue #11501 2011-03-15 21:08:50 +01:00
Brett Cannon 71f1363c34 merge 2011-03-15 16:03:32 -04:00
Brett Cannon b880c1558e Add warnings support to test.support.args_from_interpreter_flags().
This allows the -j flag to regrtest to propagate warnings settings
properly.
2011-03-15 16:03:09 -04:00
Brett Cannon d47af53126 Move off of assertEquals() and over to assertEqual(). 2011-03-15 15:55:12 -04:00
Gregory P. Smith c15799f88a merge heads 2011-03-15 15:51:26 -04:00
Benjamin Peterson e97a5b2bda merge heads 2011-03-15 14:45:20 -05:00
Benjamin Peterson d6afe724cb improve dis test coverage (closes #11559)
Thanks Matias Bordese. (a few modifications of my own)
2011-03-15 14:44:52 -05:00
Gregory P. Smith 3b4652e074 revert the test_main() change from 08daf3ef6509 so that regrtest continues to run this properly. 2011-03-15 15:43:39 -04:00
Gregory P. Smith 6466a5268a merge update 2011-03-15 15:35:27 -04:00
Barry Warsaw 5b2c876842 Merged 2011-03-15 15:23:30 -04:00
Barry Warsaw 254800e150 Merge and resolve Misc/NEWS. 2011-03-15 15:22:42 -04:00
Barry Warsaw 1f5c958721 - Issue #11289: `smtp.SMTP` class becomes a context manager so it can be used
in a `with` statement.  Contributed by Giampaolo Rodola.
2011-03-15 15:04:44 -04:00
Gregory P. Smith 5aaa498bad Use start_new_session in the webbrowser module rather than a python os.setsid preeexec_fn. 2011-03-15 14:58:08 -04:00
Gregory P. Smith 112bb3ac6a Add unittests demonstrating issue #11432. 2011-03-15 14:55:17 -04:00
R David Murray ab1dfd68e1 Merge #11555 as_string doc fix from 3.2. 2011-03-15 14:04:00 -04:00
R David Murray e1773cd3cb Merge obsolete comment removal from 3.2. 2011-03-15 12:49:33 -04:00
R David Murray df1d00a1e3 Merge #11554 test_email_codecs activation from 3.2. 2011-03-15 12:24:47 -04:00
briancurtin 5eb3591a41 Adjust test names to be more descriptive instead of depending on capitalization. 2011-03-15 10:59:36 -04:00
Benjamin Peterson eb46288a8d import style nits 2011-03-15 09:50:18 -05:00
briancurtin 906f0c45fd Fix #11509. Significantly increase test coverage for fileinput.
Patch by Denver Coneybeare at the PyCon 2011 Sprints.
2011-03-15 10:29:41 -04:00
Eric V. Smith 2e3112f120 Typo. 2011-03-15 04:16:42 -04:00
Gregory P. Smith 58e317ba92 merge 1579808ef25b 2011-03-15 02:15:13 -04:00
Ezio Melotti 373089239b #11515: Merge with 3.2. 2011-03-15 06:03:08 +02:00
R David Murray 7d9129c147 Merge long Japanese header fix from 3.2. 2011-03-14 21:14:53 -04:00
Reid Kleckner a9b3a1c49d Merge with hg.python.org. 2011-03-14 19:34:13 -04:00