Commit Graph

17865 Commits

Author SHA1 Message Date
Alexander Belopolsky b6f5ec7370 Issue #11576: Fixed timedelta subtraction glitch on big timedelta values 2011-04-05 20:07:38 -04:00
Antoine Pitrou e21a596d51 Try to fix sporadic test_multiprocessing failure 2011-04-05 18:13:06 +02:00
Antoine Pitrou 04026cf56c Try to fix sporadic test_multiprocessing failure 2011-04-05 18:12:15 +02:00
Antoine Pitrou c824e9a713 Try to fix sporadic test_multiprocessing failure 2011-04-05 18:11:33 +02:00
Ross Lagerwall 0b9ea93a64 Merge with 3.2 2011-04-05 16:07:49 +02:00
Ross Lagerwall 02ba73c0ef Merge with 3.1 2011-04-05 15:48:47 +02:00
Ross Lagerwall 4f61b02520 Issue #10963: Ensure that subprocess.communicate() never raises EPIPE. 2011-04-05 15:34:00 +02:00
Victor Stinner 7a8d08110c Issue #11757: subprocess ensures that select() and poll() timeout >= 0 2011-04-05 13:13:08 +02:00
Raymond Hettinger 7ab9e22e34 Issue #11707: Fast C version of functools.cmp_to_key() 2011-04-05 02:33:54 -07:00
Victor Stinner 271b27e5fe Issue #11768: add debug messages in test_threadsignals.test_signals 2011-04-05 02:29:30 +02:00
Victor Stinner fe7c5b5bdf Issue #9319: Include the filename in "Non-UTF8 code ..." syntax error. 2011-04-05 01:48:03 +02:00
Victor Stinner 9bdb43e43f Issue #11765: don't test time.sleep() in test_faulthandler
time.time() and/or time.sleep() are not accurate on Windows, don't test them
in test_faulthandler. Anyway, the check was written for an old implementation
of dump_tracebacks_later(), it is not more needed.
2011-04-04 23:42:30 +02:00
Antoine Pitrou 54e7135fe8 Try to fix sporadic failure in test_thread/test_threading 2011-04-04 22:00:45 +02:00
Antoine Pitrou 4333affb74 Try to fix sporadic failure in test_thread/test_threading 2011-04-04 22:00:10 +02:00
Antoine Pitrou 45fdb457da Try to fix sporadic failure in test_thread/test_threading 2011-04-04 21:59:09 +02:00
Antoine Pitrou 4ec4b0c041 Issue #10791: Implement missing method GzipFile.read1(), allowing GzipFile
to be wrapped in a TextIOWrapper.  Patch by Nadeem Vawda.
2011-04-04 21:00:37 +02:00
Antoine Pitrou d11f76f8b9 Issue #11761: make tests for gc.get_count() less fragile 2011-04-04 19:52:56 +02:00
Antoine Pitrou e9b2a4cb59 Issue #11761: make tests for gc.get_count() less fragile 2011-04-04 19:51:33 +02:00
Antoine Pitrou b35f29a0e0 Issue #11761: make tests for gc.get_count() less fragile 2011-04-04 19:50:42 +02:00
Raymond Hettinger c800af41c9 Update timeit to use the new string formatting syntax. 2011-04-04 09:28:25 -07:00
Victor Stinner f7ec1698a2 Reenable regrtest.py timeout (30 min): #11738 and #11753 looks to be fixed 2011-04-04 12:54:33 +02:00
Steven Bethard 58f41c27bc Merge 2011-04-04 02:14:25 +02:00
Steven Bethard 7c8ea37d9b Issue #9347: Fix formatting for tuples in argparse type= error messages. 2011-04-04 02:10:40 +02:00
Steven Bethard 7cb20a8605 Issue #9347: Fix formatting for tuples in argparse type= error messages. 2011-04-04 01:53:02 +02:00
Antoine Pitrou f4e181029f Fix TraceCallbackTests to not use bound parameters (followup to issue #11688) 2011-04-04 01:50:50 +02:00
Antoine Pitrou fc2e3763c8 Issue #11749: try to fix transient test_socket failure 2011-04-04 01:22:06 +02:00
Antoine Pitrou 43bf045be0 Issue #11749: try to fix transient test_socket failure 2011-04-04 01:21:37 +02:00
Antoine Pitrou 43b21687a5 Improve error message in test 2011-04-04 00:50:01 +02:00
Antoine Pitrou 5bfa0622ec Issue #11688: Add sqlite3.Connection.set_trace_callback(). Patch by Torsten Landschoff. 2011-04-04 00:12:04 +02:00
Victor Stinner d7edf3b82d Issue #11727, issue #11753, issue #11755: disable regrtest timeout
Disable regrtest timeout until #11753 and #11755 are fixed
2011-04-03 23:46:42 +02:00
Victor Stinner f77ccc6d7e test_faulthandler: improve the test on dump_tracebacks_later(cancel=True) 2011-04-03 18:45:42 +02:00
Victor Stinner 1b3241fa0c test_faulthandler: fix regex on the check_dump_traceback_threads() traceback
The traceback may contain "_is_owned":

Thread 0x40962b90:
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 220 in _is_owned
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 227 in wait
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 421 in wait
  File "<string>", line 23 in run
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 735 in _bootstrap_inner
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 708 in _bootstrap

Current thread XXX:
  File "<string>", line 10 in dump
  File "<string>", line 28 in <module>
2011-04-03 18:41:22 +02:00
Antoine Pitrou 6dca52772b Issue #11748: try to fix sporadic failures in test_ftplib 2011-04-03 18:29:45 +02:00
Antoine Pitrou 24ce386387 Fix whitespace 2011-04-03 17:08:49 +02:00
Antoine Pitrou 37dc5f85b8 Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept
file-like objects using a new `fileobj` constructor argument.  Patch by
Nadeem Vawda.
2011-04-03 17:05:46 +02:00
Ezio Melotti 0f535013c5 #11282: add back the fail* methods and assertDictContainsSubset. 2011-04-03 18:02:13 +03:00
Ezio Melotti b7af620747 #11282: merge with 3.2. 2011-04-03 17:39:19 +03:00
Ezio Melotti 361467e522 #11282: the fail* methods will stay around a few more versions. 2011-04-03 17:37:58 +03:00
Victor Stinner d91a5caf0d Issue #11727: set regrtest default timeout to 30 minutes 2011-04-01 18:16:36 +02:00
Victor Stinner 305bff1ef5 Issue #11727: set regrtest default timeout to 15 minutes 2011-04-01 15:59:59 +02:00
Victor Stinner 44378d46f6 Issue #11393: signal of user signal displays tracebacks even if tstate==NULL
* faulthandler_user() displays the tracebacks of all threads even if it is
   unable to get the state of the current thread
 * test_faulthandler: only release the GIL in test_gil_released() check
 * create check_signum() subfunction
2011-04-01 15:37:12 +02:00
Victor Stinner a01ca12a52 Issue #11393: Fix faulthandler.disable() and add a test 2011-04-01 12:56:17 +02:00
Victor Stinner d727e23243 Issue #11393: The fault handler handles also SIGABRT 2011-04-01 12:13:55 +02:00
Victor Stinner 7ad24e9a73 Issue #11393: test_faulthandler is more tolerant on inaccurate time 2011-03-31 22:35:49 +02:00
R David Murray a46ed1186f Move assertBytesEqual to base test class, improve it, and hook into assertEqual 2011-03-31 13:11:40 -04:00
Victor Stinner eb50e51a0f Issue #11393: get more information on assertion error (test_faulthandler) 2011-03-31 19:07:58 +02:00
Victor Stinner 7d648a0cec Issue #11727: Antoine and Arfrever don't like "0 < timeout" style (regrtest.py) 2011-03-31 18:27:50 +02:00
R David Murray a256bacf91 Move infrastructure into __init__ to lay groundwork for splitting test_email.
The split probably won't happen for a while, but I might as well lay the
groundwork now since I'll be adding new test modules before too long.
2011-03-31 12:20:23 -04:00
Victor Stinner 1940233102 Issue #11393: check that stdout is empty if we use a file 2011-03-31 18:15:52 +02:00
Victor Stinner 0cc8d59069 Issue #11727: add --timeout option to regrtest (disabled by default). 2011-03-31 18:10:13 +02:00
Victor Stinner 4b73988122 regrtest.py checks that child process exit code is zero 2011-03-31 18:02:36 +02:00
R David Murray 28346b8077 Only a few files were opened using findfile; consistently don't use it. 2011-03-31 11:40:20 -04:00
Victor Stinner 05585cbdc8 Issue #11393: test_faulthandler checks the exitcode after the output 2011-03-31 13:29:56 +02:00
Victor Stinner f048075079 Issue #11393: limit stack overflow test to 100 MB
Stop if the stack overflow doesn't occur after allocating 100 MB on the stack.
2011-03-31 11:34:08 +02:00
Victor Stinner 3c7c355e67 Issue #11557: disable test_logging.test_no_kwargs (fail on most buildbots) 2011-03-31 03:22:15 +02:00
Victor Stinner 0862d6ed8f Issue #11393: Disable test_stack_overflow of test_faulthandler 2011-03-31 02:05:54 +02:00
Victor Stinner bb14b37044 Issue #11393: reenable all tests in regrtest.py (wooops, sorry Antoine) 2011-03-31 01:34:22 +02:00
Victor Stinner 024e37adcc Issue #11393: Add the new faulthandler module 2011-03-31 01:31:06 +02:00
Antoine Pitrou d85456279f Issue #11618: Fix the timeout logic in threading.Lock.acquire() under
Windows.
2011-03-31 01:03:10 +02:00
Antoine Pitrou 7899acfc23 Issue #11618: Fix the timeout logic in threading.Lock.acquire() under
Windows.
2011-03-31 01:00:32 +02:00
Kristjan Valur Jonsson 8c5b748026 Merge 2011-03-30 11:55:52 +00:00
Kristjan Valur Jonsson d05595697d Merge 3.1 2011-03-30 11:54:13 +00:00
Kristjan Valur Jonsson 3c136e19b9 Merge 2011-03-30 11:39:24 +00:00
Kristjan Valur Jonsson 978da33c7a Merge 3.2 2011-03-30 11:32:06 +00:00
Kristjan Valur Jonsson fa3edbed25 Merge 3.1 2011-03-30 11:24:58 +00:00
Kristjan Valur Jonsson 35722a9376 Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
ti can raise an exception even if PyLong_Check() has
succeeded.
2011-03-30 11:04:28 +00:00
Guido van Rossum 20d2ab435e Merge issue 11662. 2011-03-29 12:58:29 -07:00
Guido van Rossum acb63092b7 Merge issue 11662. 2011-03-29 12:55:41 -07:00
guido@google.com 69cfcabae3 Merge. 2011-03-29 12:09:45 -07:00
guido@google.com 2008a8f8c0 Merge Issue 11662 from 3.2 branch. 2011-03-29 12:02:49 -07:00
guido@google.com c768ff5d4f Merge Issue 11662 from 3.1 branch. 2011-03-29 11:51:26 -07:00
guido@google.com a119df91f3 Issue 11662: Fix vulnerability in urllib/urllib2.
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)
2011-03-29 11:41:02 -07:00
Vinay Sajip e6c1eb9267 Closes issue #11557: Added Natalia Bidart's patch to improve test coverage. 2011-03-29 17:20:34 +01:00
R David Murray 86cc82e36f Remove the 'strict' argument to Parser, deprecated since 2.4. 2011-03-29 11:32:35 -04:00
R David Murray 1ebdd714ac Add a __main__.py to test_email so it works with -m like it did before move. 2011-03-29 09:59:45 -04:00
Benjamin Peterson 1df78c8e6e merge 3.2 2011-03-28 17:42:35 -05:00
Benjamin Peterson 6a2638b163 Correct handling of functions with only kwarg args in getcallargs (closes #11256)
A patch from Daniel Urban.
2011-03-28 17:32:31 -05:00
Raymond Hettinger 5d44613e3b Add optional *func* argument to itertools.accumulate(). 2011-03-27 18:52:10 -07:00
Martin v. Löwis af88d86699 merge #11696 2011-03-27 21:09:00 +02:00
Martin v. Löwis 987403bf14 merge #11696 2011-03-27 21:07:13 +02:00
Martin v. Löwis f8d887e0d3 Closes #11696: Fix ID generation in msilib.
Patch by Mark Mc Mahon.
2011-03-27 21:05:51 +02:00
Mark Dickinson ad64127878 merge 2011-03-27 16:39:53 +01:00
Ross Lagerwall f382ab25ca Issue #11692: Remove unnecessary demo functions in subprocess module. 2011-03-27 17:34:22 +02:00
Mark Dickinson 574980e946 Merge #9696 2011-03-27 16:30:50 +01:00
Mark Dickinson 79a9036d09 Merge #9696 2011-03-27 16:30:07 +01:00
Mark Dickinson 92b60d55d9 Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer. 2011-03-27 16:25:40 +01:00
Steven Bethard 4ad8f66559 Issue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.) 2011-03-27 14:04:03 +02:00
Steven Bethard 8a6a198abf Issue #9026: Fix order of argparse sub-commands in help messages. 2011-03-27 13:53:53 +02:00
Martin v. Löwis 5df4762911 merge #7639 2011-03-27 10:15:57 +02:00
Martin v. Löwis a6e0b4f2ed merge #7639 2011-03-27 10:14:57 +02:00
Martin v. Löwis 9bad3a99dd Fix short file name generation in bdist_msi.
Patch by Christoph Gohlke.
Closes #7639.
2011-03-27 10:12:07 +02:00
Benjamin Peterson eb2389be0e merge 3.2 2011-03-26 18:18:09 -05:00
Benjamin Peterson 1a07f07337 merge 3.1 2011-03-26 18:17:05 -05:00
Benjamin Peterson c01ffdf61e revert unintended changes 2011-03-26 18:11:54 -05:00
Benjamin Peterson 8d6c62dd89 check possible recursive _as_parameter_ to prevent segfault (closes #1838) 2011-03-26 17:56:28 -05:00
Ross Lagerwall 4aeb542a72 Merge with 3.2 2011-03-26 21:22:09 +02:00
Ross Lagerwall 17ace7a07c Merge with 3.1 2011-03-26 21:21:46 +02:00
Ross Lagerwall b8a5769a6d Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.
Patch by Ben Hayden.
2011-03-26 21:19:57 +02:00
Antoine Pitrou 08ce60800e Issue #11635: Don't use polling in worker threads and processes launched by
concurrent.futures.
2011-03-26 19:33:44 +01:00
Antoine Pitrou c13d454e84 Issue #11635: Don't use polling in worker threads and processes launched by
concurrent.futures.
2011-03-26 19:29:44 +01:00
Antoine Pitrou 0a01b9f91b Merge from 3.2 2011-03-26 18:39:55 +01:00
Antoine Pitrou d9faa201ce Read HTTP response inside transient_internet() 2011-03-26 18:38:06 +01:00
Antoine Pitrou b651949f53 test_urllibnet: make it so that transient_internet() applies to the
whole HTTP exchange, not only the opening.
2011-03-26 18:36:42 +01:00
Steven Bethard edbe4c5249 Issue #9348: Raise an early error if argparse nargs and metavar don't match. (Merge from 3.2.) 2011-03-26 17:35:11 +01:00
Steven Bethard 8d9a4628c3 Issue #9348: Raise an early error if argparse nargs and metavar don't match. 2011-03-26 17:33:56 +01:00
Steven Bethard 0331e906d6 Issue #11174: Add argparse.MetavarTypeHelpFormatter, which uses type names
for the names of optional and positional arguments in help messages.
2011-03-26 14:48:04 +01:00
Mark Dickinson 657bd0a25d Merge #11675 2011-03-26 10:22:56 +00:00
Mark Dickinson 633872e3fb Merge #11675 2011-03-26 10:21:20 +00:00
Mark Dickinson 89461ef8fc Issue #11675: Zero-out newly-created multiprocessing.[Raw]Array objects. 2011-03-26 10:19:03 +00:00
Éric Araujo b3a591bf06 Branch merge 2011-03-26 02:01:33 +01:00
Éric Araujo be3bd57ba2 Remove traces of division_warning left over from Python 2 (#10998) 2011-03-26 01:55:15 +01:00
Kurt B. Kaiser 4e4edf5e78 Merge from 3.2 2011-03-25 20:34:11 -04:00
Kurt B. Kaiser e7665c4cf3 Merge from 3.1 2011-03-25 20:32:00 -04:00
Kurt B. Kaiser 946f17214c <Home> toggle failing on Tk 8.5, causing IDLE exits. Issue #4676 2011-03-25 20:29:13 -04:00
Raymond Hettinger 007bdbd7ab Issue #11666: Teach pydoc to display full help for named tuples 2011-03-25 14:16:13 -07:00
Raymond Hettinger 1103d05775 Issue #11666: Teach pydoc to display full help for named tuples 2011-03-25 14:15:24 -07:00
R David Murray 79fe2a3462 Merge #9557: eliminate 3 seconds of static overhead from test_mailbox. 2011-03-25 16:20:16 -04:00
R David Murray 66a4e12da4 Merge #9557: eliminate 3 seconds of static overhead from test_mailbox. 2011-03-25 16:16:54 -04:00
R David Murray b9a428d57d #9557: eliminate 3 seconds of static overhead from test_mailbox.
This patch doesn't quite fix the 'run in a VM with Samba share'
timing problem, but it should at least make it better.
2011-03-25 16:03:47 -04:00
R David Murray 961355a56a Merge #11584: Since __getitem__ returns headers, make decode_header handle them. 2011-03-25 15:31:52 -04:00
R David Murray 041015cc70 #11584: Since __getitem__ returns headers, make decode_header handle them.
Why I consider this a bug rather than an API change: the API change was
to Message, which didn't used to return Headers unless you added them
yourself.  Now it does (for 8bit binary header input), so decode_header
needs to be able to handle them.
2011-03-25 15:10:55 -04:00
Ezio Melotti fd2c2a5271 #2650: Merge with 3.2. 2011-03-25 14:26:56 +02:00
Ezio Melotti 213eb96902 #2650: Merge with 3.1. 2011-03-25 14:25:36 +02:00
Ezio Melotti ebbf1e67a8 #2650: Refactor re.escape to use enumerate(). 2011-03-25 14:19:30 +02:00
Ezio Melotti 7b9e97b487 #2650: Add tests with non-ascii chars for re.escape. 2011-03-25 14:09:33 +02:00
Ezio Melotti d2114ebd97 #2650: Refactor the tests for re.escape. 2011-03-25 14:08:44 +02:00
Thomas Wouters 518b5aea1a Revert the Lib/test/test_bigmem.py changes from commit 17891566a478 (and a
few other assertEqual tests that snuck in), and expand the docstrings and
comments explaining why and how these tests are supposed to work.
2011-03-25 11:42:37 +01:00
Kurt B. Kaiser 439dfffaf3 Merge 3.2 heads 2011-03-25 00:22:09 -04:00
Kurt B. Kaiser e88893ccc6 Merge heads 2011-03-24 15:10:28 -04:00
Kurt B. Kaiser 85f3cb45c1 Merge 3.2 2011-03-24 15:03:14 -04:00
R David Murray 576483085c #11093: make NOTTESTS empty by renaming confusingly named files in test dir.
Patch by Sandro Tosi.
2011-03-24 14:57:05 -04:00
R David Murray b588f8dd9f #11031: Add --testdir to specify where to find tests
Patch by Sandro Tosi.  The main purpose of this option is to allow
an alternate set of tests files to be used when running tests
of the regrtest tool itself.
2011-03-24 14:42:58 -04:00
R David Murray 03504fc2fb #11030: make --coverdir work for relative directories again. 2011-03-24 14:35:30 -04:00
Raymond Hettinger 6712a3e14f Remove test_importable(). Couldn't see how to make this reliable across all platforms. 2011-03-24 10:51:06 -07:00
Kurt B. Kaiser 5cf7878fda Merge 3.1 2011-03-24 13:19:35 -04:00
Kurt B. Kaiser 73979c3149 Merge 3.2 2011-03-24 12:51:10 -04:00
Raymond Hettinger d4652fab51 Isolate the test_source() test in test_collections 2011-03-24 09:45:43 -07:00
R David Murray 73bd0448b9 Merge #11606: improved body_encode algorithm, no longer produces overlong lines 2011-03-24 12:28:39 -04:00
R David Murray c7d28be62f Merge #11606: improved body_encode algorithm, no longer produces overlong lines 2011-03-24 12:27:23 -04:00
R David Murray b938c8c253 #11606: improved body_encode algorithm, no longer produces overlong lines
Algorithm and initial patch by Michael Henry.
2011-03-24 12:19:26 -04:00
Kurt B. Kaiser f9439914c8 Merge 3.1 2011-03-24 12:03:36 -04:00
Victor Stinner f09e652a0e Merge 3.2 2011-03-24 16:39:34 +01:00
Victor Stinner 900189b414 Merge 3.1 2011-03-24 16:39:07 +01:00
Victor Stinner 29943aa120 test_multiprocessing: use assertLess() to see the timeout on error 2011-03-24 16:24:07 +01:00
Antoine Pitrou bace3b9ac6 Add tests for the atexit hook in concurrent.futures (part of #11635) 2011-03-24 15:48:26 +01:00
Antoine Pitrou aebac0b55a Add tests for the atexit hook in concurrent.futures (part of #11635) 2011-03-24 15:47:39 +01:00
Senthil Kumaran ea8b024d11 issue11236 getpass.getpass to respond ctrl-c or ctrl-z 2011-03-24 22:27:01 +08:00
Senthil Kumaran e6ead3905d issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda 2011-03-24 11:47:29 +08:00
Senthil Kumaran 2024acd36f issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda. 2011-03-24 11:46:19 +08:00
Raymond Hettinger f6d3e8eaef Add tests for _source to importable and exec'able.
Move __name__ back out of the template; the responsibility
for setting __name__ lies with the caller (which knows
something about the new namespace), not with the class
definition (which doesn't know about the namespace it is
being built in).
2011-03-23 20:33:30 -07:00
Brett Cannon 5d43cff623 Remove a stale comment. 2011-03-23 18:12:24 -07:00
Brett Cannon 442c9b92d8 Make importlib compatible with __import__ by "fixing" code.co_filename
paths.

__import__ does a little trick when importing from bytecode by
back-patching the co_filename paths to point to the file location
where the code object was loaded from, *not* where the code object was
originally created. This allows co_filename to point to a valid path.
Problem is that co_filename is immutable from Python, so a private
function -- imp._fix_co_filename() -- had to be introduced in order to
get things working properly. Originally the plan was to add a file
argument to marshal.loads(), but that failed as the algorithm used by
__import__ is not fully recursive as one might expect, so to be fully
backwards-compatible the code used by __import__ needed to be exposed.

This closes issue #6811 by taking a different approach than outlined
in the issue.
2011-03-23 16:14:42 -07:00
Brett Cannon a7468bc5c6 Have importlib use the repr of a module name in error messages.
This makes it obvious that an import failed because of some extraneous
whitespace (e.g., a newline).

This is a partial fix for issue #8754.
2011-03-23 16:06:00 -07:00
Antoine Pitrou f3c524d535 Issue #11653: fix -W with -j in regrtest. 2011-03-23 23:05:07 +01:00
Antoine Pitrou 293954dd76 Issue #11653: fix -W with -j in regrtest 2011-03-23 23:01:49 +01:00
Raymond Hettinger 15d0c1d073 Minor clean-ups. 2011-03-23 14:38:39 -07:00
Raymond Hettinger 41da10e62c Merge 2011-03-23 12:53:32 -07:00
Raymond Hettinger 2ebea41d31 Expose the namedtuple source with a _source attribute. 2011-03-23 12:52:23 -07:00
R David Murray 5839b9635c Merge #11590: fix quoprimime decode handling of empty strings and line endings. 2011-03-23 15:37:26 -04:00
R David Murray 523b41c4b3 Merge #11590: fix quoprimime decode handling of empty strings and line endings. 2011-03-23 15:27:04 -04:00
R David Murray cafd79d904 #11590: fix quoprimime decode handling of empty strings and line endings. 2011-03-23 15:25:55 -04:00
Antoine Pitrou 6ab79d9d5b Allow "-j0" as an argument to regrtest, to automatically select an
appropriate number of parallel workers.
2011-03-23 20:17:45 +01:00
Antoine Pitrou 5066b03361 Fix transmitting warning options to the children when running tests in
parallel (thanks Michael for pointing this).
2011-03-23 20:10:18 +01:00
Raymond Hettinger 843a751369 Move namespace setup inside the template. 2011-03-23 11:49:56 -07:00
R David Murray 3dcf745a61 Merge #11589: add additional tests for the email quoprimime module. 2011-03-23 14:29:49 -04:00
R David Murray 3d9e973abd Merge #11589: add additional tests for the email quoprimime module. 2011-03-23 14:27:18 -04:00
R David Murray ec1b5b88ee #11589: add additional tests for the email quoprimime module.
Patch by Michael Henry.
2011-03-23 14:19:05 -04:00
Mark Dickinson 7c9e803284 Issue #11244: Remove outdated peepholer check that was preventing the peepholer from folding -0 and -0.0. Thanks Eugene Toder for the patch. 2011-03-23 17:59:37 +00:00
Raymond Hettinger b2d0945c87 Minor named tuple clean-ups. 2011-03-22 22:36:21 -07:00
Raymond Hettinger fef854602b Factor-out named tuple class definition template strings. 2011-03-22 21:14:41 -07:00
Éric Araujo e84c4df786 Branch merge 2011-03-23 04:53:10 +01:00
Antoine Pitrou c28af1f05f Use transient_internet() consistently in test_imaplib 2011-03-23 03:11:21 +01:00
Antoine Pitrou 924cbea467 Use transient_internet() consistently in test_imaplib 2011-03-23 03:10:14 +01:00
Éric Araujo 48049911d6 Fix obscure set crashers (#8420). Backport of d56b3cafb1e6, reviewed by Raymond. 2011-03-23 02:08:07 +01:00
Éric Araujo c09fca67e7 Do not touch sys.path when site is imported and python was started with -S.
Original patch by Carl Meyer, review by Brett Cannon, small doc editions by
yours truly.  Fixes #11591.
2011-03-23 02:06:24 +01:00
Kurt B. Kaiser 4364806a7c Merge from 3.2 2011-03-22 20:05:18 -04:00
Kurt B. Kaiser 01ac8cdc13 Merge from 3.1 2011-03-22 19:26:46 -04:00
Raymond Hettinger 09cbadd005 Issue 10787: Document the probability density function for random.gammavariate. 2011-03-22 15:57:03 -07:00
Raymond Hettinger 27f870982f Issue 10787: Document the probability density function for random.gammavariate. 2011-03-22 15:56:41 -07:00
Raymond Hettinger a8e4d6eb6e Issue 10787: Document the probability density function for random.gammavariate. 2011-03-22 15:55:51 -07:00
Raymond Hettinger 74b015e243 Clean-up whitespace. 2011-03-22 14:22:52 -07:00
Raymond Hettinger 3e82ae0aae Replace **locals() with explicit field names. 2011-03-22 14:21:38 -07:00
Raymond Hettinger 9a3f4cbfc3 Simplify the named tuple template by using the new string format syntax. 2011-03-22 14:07:23 -07:00
Raymond Hettinger 50105d3840 Improve readability by replacing '\n' in template with real newlines. 2011-03-22 13:34:03 -07:00
Raymond Hettinger c46759ad0b Issue #11333: Add __slots__ to the collections ABCs. 2011-03-22 11:46:25 -07:00
Antoine Pitrou 36920354c7 Merge 2011-03-22 18:33:33 +01:00
Antoine Pitrou 8e5e942c59 Use shorter timings in test_concurrent_futures to make it a bit faster
(it's still very slow)
2011-03-22 18:30:30 +01:00
Raymond Hettinger 0a4edd5435 Issue #11628: cmp_to_key should use __slots__. 2011-03-21 17:54:04 -07:00
Raymond Hettinger a0d1d96771 Issue #11628: cmp_to_key should use __slots__. 2011-03-21 17:50:28 -07:00
R David Murray 39bc38c39c Fix rename spelling error. 2011-03-21 17:36:15 -04:00
R David Murray 9aaba789b3 Correctly move email package tests to Lib/test. 2011-03-21 17:17:06 -04:00
R David Murray 661720e7f7 Make regrtest recognize test packages as well as test modules. 2011-03-21 15:14:34 -04:00
Antoine Pitrou c107fb1b59 Always print out the traceback when a test "crashed" 2011-03-21 19:55:58 +01:00
Antoine Pitrou 779a5b0b3a Always print out the traceback when a test "crashed" 2011-03-21 19:55:16 +01:00
Antoine Pitrou 59cc6847a9 Try to make test_import a bit more robust 2011-03-21 19:05:18 +01:00
Antoine Pitrou 46719af05a Try to make test_import a bit more robust 2011-03-21 19:05:02 +01:00
Antoine Pitrou 732110ab39 Relax timing check (seen a buildbot failure on this) 2011-03-21 18:43:40 +01:00
Antoine Pitrou 60bf7e9e4d Relax timing check (seen a buildbot failure on this) 2011-03-21 18:43:01 +01:00
Reid Kleckner 91156ff3f1 Fix timeout error message on windows to not be in milliseconds. 2011-03-21 10:06:10 -07:00
Antoine Pitrou 0fd59acc70 Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9) 2011-03-21 16:04:06 +01:00