Victor Stinner
a929335961
Issue #8407 , issue #11859 : Add signal.pthread_sigmask() function to fetch
...
and/or change the signal mask of the calling thread.
Fix also tests of test_io using threads and an alarm: use pthread_sigmask() to
ensure that the SIGALRM signal is received by the main thread.
Original patch written by Jean-Paul Calderone.
2011-04-30 15:21:58 +02:00
Victor Stinner
d5c355ccc7
Issue #11223 : Replace threading._info() by sys.thread_info
2011-04-30 14:53:09 +02:00
Senthil Kumaran
4a0afa224c
Wrap the correct test with the skip decorator for the issue10761.
...
merge from 3.2.
2011-04-30 06:12:25 +08:00
Senthil Kumaran
be5dbebeaa
merge from 3.1
2011-04-30 06:09:51 +08:00
Senthil Kumaran
f108f8258e
Wrap the testskip decorator for the proper test to resolve bb failure.
2011-04-30 06:06:28 +08:00
Łukasz Langa
82710c594b
Merged minor cleanups from 3.2.
2011-04-29 16:17:51 +02:00
Łukasz Langa
4d27d9e8b6
__class__ of a __class__ check worked only by chance.
2011-04-29 16:15:41 +02:00
Łukasz Langa
75da860413
TestChainMap was not previously used. Minor corrections applied.
2011-04-29 11:35:03 +02:00
Antoine Pitrou
09db87b633
Merge
2011-04-29 00:49:33 +02:00
Antoine Pitrou
31b89599e9
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
2011-04-29 00:49:03 +02:00
Brian Curtin
f664345981
Implement #11832 . Add an option to start regrtest and wait for input
...
before continuing.
This is useful for starting up the test suite to attach a debugger such
as Visual Studio or others.
2011-04-28 17:45:17 -05:00
Antoine Pitrou
390ea0f25d
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
2011-04-29 00:44:33 +02:00
Antoine Pitrou
5aefa6637c
Fix whitespace
2011-04-28 19:24:46 +02:00
Antoine Pitrou
15399c3f09
Issue #11811 : ssl.get_server_certificate() is now IPv6-compatible. Patch
...
by Charles-François Natali.
2011-04-28 19:23:55 +02:00
Antoine Pitrou
9c39f3c4ec
Issue #11811 : Factor out detection of IPv6 support on the current host
...
and make it available as `test.support.IPV6_ENABLED`. Patch by
Charles-François Natali.
2011-04-28 19:18:10 +02:00
Łukasz Langa
70eb79c669
Merged solution for #11324 from 3.2.
2011-04-28 17:04:25 +02:00
Łukasz Langa
1aa422fe8f
Closes #11324 : ConfigParser(interpolation=None) doesn't work.
...
Initial patches by Tobias Brink. Thanks!
2011-04-28 17:03:45 +02:00
Vinay Sajip
7fe1d51924
Improved test_logging coverage.
2011-04-28 12:04:58 +01:00
Łukasz Langa
e812bf7bf6
Merged styling updates for #11670 from 3.2.
2011-04-28 12:02:58 +02:00
Łukasz Langa
ba702daef9
Style updates for the #11670 solution after post-commit review by Ezio Melotti:
...
http://mail.python.org/pipermail/python-checkins/2011-April/104688.html
Thanks!
2011-04-28 12:02:05 +02:00
Senthil Kumaran
2ea72709a3
merge from 3.2
2011-04-28 17:08:41 +08:00
Senthil Kumaran
c20566cdf8
merge from 3.1
2011-04-28 17:08:12 +08:00
Senthil Kumaran
e3bdcf4ffd
skip the extractall test on platforms where os.symlink is not available.
2011-04-28 17:05:55 +08:00
Łukasz Langa
50c7562da9
Merged solution for #11858 from 3.2.
2011-04-28 11:01:18 +02:00
Łukasz Langa
e698cd54bc
Closes #11858 : configparser.ExtendedInterpolation and section case.
...
Patch by ゆかり ぴんく魔女. Thanks!
2011-04-28 10:58:57 +02:00
Senthil Kumaran
7274828b48
merge from 3.2
2011-04-28 15:53:59 +08:00
Senthil Kumaran
8a410d319a
merge from 3.1
2011-04-28 15:53:09 +08:00
Senthil Kumaran
123932f237
Add tests for tarfile extractall feature when with symlinks
2011-04-28 15:38:12 +08:00
Ezio Melotti
60811c215f
#11926 : merge with 3.2.
2011-04-28 07:55:29 +03:00
Ezio Melotti
44aad855dd
#11926 : merge with 3.1.
2011-04-28 07:51:14 +03:00
Ezio Melotti
b185a04aa1
#11926 : add missing keywords to help("keywords").
2011-04-28 07:42:55 +03:00
Ezio Melotti
3c1d067ef9
#11938 : merge with 3.2.
2011-04-28 01:00:25 +03:00
Ezio Melotti
75cbd73666
#11938 : Fix duplicated test name in test_inspect. Patch by Andreas Stührk.
2011-04-28 00:59:29 +03:00
Łukasz Langa
29050d7317
Merged #11670 from 3.2
2011-04-27 18:11:50 +02:00
Łukasz Langa
daab1c8092
Closes #11670 : configparser read_file now iterates over f.
2011-04-27 18:10:05 +02:00
Éric Araujo
0abb8b74d9
Merge 3.2
2011-04-27 16:32:36 +02:00
Éric Araujo
944d16c6c4
Merge 3.1
2011-04-27 16:27:38 +02:00
Éric Araujo
9a42793761
Branch merge
2011-04-27 16:23:56 +02:00
Vinay Sajip
6bba65c799
Use correct Unix socket for syslogd on OS X.
2011-04-27 14:31:55 +01:00
Vinay Sajip
dbeb27461c
test_logging: handle syslogd connection failure.
2011-04-27 14:18:06 +01:00
Vinay Sajip
5a35b06d5e
test_logging coverage improvements.
2011-04-27 11:31:14 +01:00
Vinay Sajip
86a96cee23
Re-enabled time test in test_logging.
2011-04-27 08:30:30 +01:00
Ezio Melotti
935a588825
#11763 : don't use difflib in TestCase.assertMultiLineEqual if the strings are too long.
2011-04-27 10:17:34 +03:00
Vinay Sajip
d972d8fea2
Disabled test failing on buildbots.
2011-04-26 20:51:07 +01:00
Vinay Sajip
37eb3387a4
Refined time test in test_logging.
2011-04-26 20:26:41 +01:00
Vinay Sajip
373baef1eb
Yet more test_logging coverage improvements.
2011-04-26 20:05:24 +01:00
Vinay Sajip
985ef87ea0
More test_logging coverage improvements.
2011-04-26 19:34:04 +01:00
Vinay Sajip
26fe4b70cf
test_logging coverage improvements.
2011-04-26 18:43:05 +01:00
Ezio Melotti
bf1253b25a
#6780 : merge with 3.2.
2011-04-26 06:45:24 +03:00
Ezio Melotti
f2b3f780a1
#6780 : merge with 3.1.
2011-04-26 06:40:59 +03:00
Ezio Melotti
ba42fd5801
#6780 : fix starts/endswith error message to mention that tuples are accepted too.
2011-04-26 06:09:45 +03:00
Antoine Pitrou
d4a2ff40d5
Issue #11919 : try to fix test_imp failure on some buildbots.
2011-04-25 21:46:04 +02:00
Antoine Pitrou
11846905d3
Issue #11919 : try to fix test_imp failure on some buildbots.
2011-04-25 21:39:49 +02:00
Antoine Pitrou
eec60603a8
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:23:26 +02:00
Antoine Pitrou
8e60577693
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:21:07 +02:00
Jesus Cea
88f7841be7
Correctly merging #9319 into 3.3?
2011-04-25 03:46:43 +02:00
Victor Stinner
c2824d41c3
Issue #11915 : threading.RLock()._release_save() raises a RuntimeError if the
...
lock was not acquired.
2011-04-24 23:41:33 +02:00
Éric Araujo
2bad92d310
Remove obsolete/duplicate docstring
2011-04-24 17:10:30 +02:00
Victor Stinner
7fdd0fe48f
Issue #9319 : Fix the unit test
2011-04-23 01:24:11 +02:00
Victor Stinner
c68b6aaec8
Issue #9319 : Fix a crash on parsing a Python source code without encoding
...
cookie and not valid in UTF-8: use "<file>" as the filename instead of
reading from NULL.
2011-04-23 00:41:19 +02:00
Vinay Sajip
00bdbe1d97
Fixed bug in test_logging.
2011-04-22 00:17:46 +01:00
Ezio Melotti
5020e000c5
Merge with 3.2.
2011-04-20 21:59:06 +03:00
Ezio Melotti
af92842bf9
Use non-deprecated method name.
2011-04-20 21:56:21 +03:00
Jesus Cea
c1ceb64e41
MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 17:59:29 +02:00
Jesus Cea
6159ee3cf5
MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 17:42:50 +02:00
Jesus Cea
ac4515063c
startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 17:09:23 +02:00
Vinay Sajip
5e66b167ff
Tidied comments and docstrings.
2011-04-20 15:41:14 +01:00
Vinay Sajip
5b9eecf8cf
Attempt fix of #11557 by refining test logic.
2011-04-20 12:50:42 +01:00
Vinay Sajip
1e42f9e4c0
Attempt fix of #11557 by refining setup/teardown logic.
2011-04-20 12:20:44 +01:00
Vinay Sajip
95bf50416e
Attempt fix of #11557 by changing setup/teardown logic.
2011-04-20 11:50:56 +01:00
Vinay Sajip
3def7e0f01
Attempt fix of #11557 by changing teardown logic.
2011-04-20 10:58:06 +01:00
Victor Stinner
754851f456
Issue #11223 : Add threading._info() function providing informations about the
...
thread implementation.
Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() of
test_threadsignals if a thread lock is implemented using a POSIX mutex and a
POSIX condition variable. A POSIX condition variable cannot be interrupted by a
signal (e.g. on Linux, the futex system call is restarted).
2011-04-19 23:58:51 +02:00
Nadeem Vawda
d7d01cd80c
Merge test_startfile fix from 3.2.
2011-04-19 01:41:28 +02:00
Nadeem Vawda
cc3f029380
Merge test_startfile fix from 3.1.
2011-04-19 01:40:45 +02:00
Nadeem Vawda
58de6ee871
Fix sporadic failure in test_startfile.
...
Wait for the child process to terminate before ending the test, so that the
regrtest cleanup code doesn't get an error when it tries to delete the
temporary CWD.
2011-04-19 01:38:47 +02:00
R David Murray
3edd22ac95
#11731 : simplify/enhance parser/generator API by introducing policy objects.
...
This new interface will also allow for future planned enhancements
in control over the parser/generator without requiring any additional
complexity in the parser/generator API.
Patch reviewed by Éric Araujo and Barry Warsaw.
2011-04-18 13:59:37 -04:00
Victor Stinner
ce16be91dc
(Merge 3.2) Issue #11768 : The signal handler of the signal module only calls
...
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
2011-04-18 16:30:17 +02:00
R David Murray
f3299989a2
Merge: #11492 : rewrite header folding algorithm. Less code, more passing tests.
2011-04-18 10:11:06 -04:00
Antoine Pitrou
cf645db809
Issue #11790 : Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
2011-04-16 21:02:38 +02:00
Antoine Pitrou
f25a8de845
Issue #11790 : Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
2011-04-16 21:02:01 +02:00
Antoine Pitrou
a4eb194ea6
Merge from 3.2
2011-04-16 18:55:16 +02:00
Antoine Pitrou
ee4293400c
Fix possible "file already exists" error when running the tests in parallel.
...
This is a perfect example of LBYL going wrong: that code could be executed
by several workers in parallel, and os.mkdir() attempted on the same
path by multiple processes.
2011-04-16 18:53:59 +02:00
R David Murray
e2c4cfce54
Merge: Improve message.py test coverage to 100%.
...
coverage.py reports 99% on branch coverage, but that appears to be
a bug or limitation in coverage.py.
2011-04-16 09:21:49 -04:00
Vinay Sajip
cd5a2bd48e
Issue #11852 : Merge fix from 3.2.
2011-04-15 22:29:15 +01:00
Vinay Sajip
e723e96103
Issue #11852 : Add missing imports and update tests.
2011-04-15 22:27:17 +01:00
Raymond Hettinger
b5a40d4d3f
Fix minor subclassing issue with collections.Counter
2011-04-15 13:23:01 -07:00
Raymond Hettinger
6c9e5b779f
Fix minor subclassing issue with collections.Counter
2011-04-15 13:21:30 -07:00
Raymond Hettinger
1c746c28f3
Fix minor subclassing issue with collections.Counter
2011-04-15 13:16:46 -07:00
Ezio Melotti
e1adeeb7fd
#5057 : Merge with 3.2.
2011-04-15 16:52:35 +03:00
Ezio Melotti
71e84a6e27
#5057 : Merge with 3.1.
2011-04-15 16:50:41 +03:00
Ezio Melotti
2df6a93916
Issue #5057 : fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. "\U00012345"[0]).
2011-04-15 16:38:34 +03:00
Senthil Kumaran
b496159603
merge from 3.2
2011-04-15 18:22:05 +08:00
Senthil Kumaran
b4bd4af8c4
merge from 3.1
2011-04-15 18:21:26 +08:00
Senthil Kumaran
397eb4411a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme specific part only digits.
2011-04-15 18:20:24 +08:00
Ezio Melotti
a15f614a0c
#11845 : Merge with 3.2.
2011-04-15 08:19:32 +03:00
Ezio Melotti
982ef4e0bc
#11845 : Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
2011-04-15 08:15:40 +03:00
Senthil Kumaran
99e97f92c6
merge from 3.2.
...
Fix closes Issue1147.
2011-04-14 13:20:41 +08:00
Senthil Kumaran
56f1e2d875
merge from 3.1
2011-04-14 13:18:55 +08:00
Senthil Kumaran
2d2ea1b431
Fix Issue11474 - fix url2pathname() handling of '/C|/' on Windows
2011-04-14 13:16:30 +08:00
R David Murray
b35c850a3f
#11684 : Complete parser bytes interface by adding BytesHeaderParser
...
Patch by Steffen Daode Nurpmeso.
2011-04-13 16:46:05 -04:00
Raymond Hettinger
f400ab40e4
merge
2011-04-13 11:50:34 -07:00
Raymond Hettinger
8a9c4d9866
Issue 3051: make pure python code pass the same tests as the C version.
2011-04-13 11:49:57 -07:00
Ezio Melotti
7d01e78c9e
Merge with 3.2.
2011-04-13 07:21:24 +03:00
Ezio Melotti
04c6423fba
Merge with 3.1.
2011-04-13 07:18:24 +03:00
R David Murray
d16ee63df2
Merge #10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:19:20 -04:00
R David Murray
d5315482e9
Merge #10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:09:18 -04:00
Benjamin Peterson
59c90c6cb2
merge 3.2
2011-04-12 18:35:21 -05:00
Benjamin Peterson
62f8bcb0a4
merge 3.1
2011-04-12 18:34:30 -05:00
Benjamin Peterson
abdeeff3d1
merge heads
2011-04-12 18:34:06 -05:00
Benjamin Peterson
bd3e362089
make assigning to a bytes literal a syntax error ( closes #11506 )
2011-04-12 18:33:28 -05:00
Senthil Kumaran
5809403e6d
merge the change update.
2011-04-13 07:25:48 +08:00
Senthil Kumaran
1cea9a0227
merge from 3.2
2011-04-13 07:24:32 +08:00
Senthil Kumaran
b17abb1af9
merge from 3.1
2011-04-13 07:22:29 +08:00
Victor Stinner
9bf133ca31
Fix #11825 : disable regrtest timeout if Python doesn't support threads
2011-04-13 01:06:27 +02:00
Senthil Kumaran
2643041970
Fix Issue11703 - urllib2.geturl() does not return correct url when the original url contains #fragment. Patch Contribution by Santoso Wijaya.
2011-04-13 07:01:19 +08:00
Raymond Hettinger
9180deb59c
Issue 11747: Fix output format for context diffs.
2011-04-12 15:25:30 -07:00
Raymond Hettinger
f03d3028e0
Issue 11747: Fix output format for context diffs.
2011-04-12 15:19:33 -07:00
Raymond Hettinger
3780542039
Issue 11747: Fix output format for context diffs.
2011-04-12 15:14:12 -07:00
Nadeem Vawda
ea4b46f9a9
Fix 64-bit safety issue in BZ2Compressor and BZ2Decompressor.
2011-04-12 23:02:42 +02:00
Raymond Hettinger
2498c9f06e
Issue #11747 : Fix range formatting in context and unified diffs.
2011-04-11 12:42:59 -07:00
Raymond Hettinger
49353d0e8f
Issue #11747 : Fix range formatting in context and unified diffs.
2011-04-11 12:40:58 -07:00
Vinay Sajip
4a0a31df5c
Added 'handlers' argument to logging.basicConfig.
2011-04-11 08:42:07 +01:00
R David Murray
eb9e074dca
Use stock assertEqual instead of custom ndiffAssertEqual.
...
Eventually I'll actually replace the calls in the tests themselves.
2011-04-10 15:28:29 -04:00
Ezio Melotti
88fdeb45ef
#2650 : re.escape() no longer escapes the "_".
2011-04-10 12:59:16 +03:00
Ned Deily
4e6aba6f63
Issue9670: Merge backout from 3.2.
2011-04-09 14:58:04 -07:00
Ned Deily
2604e33f30
Issue9670: Merge backout to 3.2.
2011-04-09 14:53:47 -07:00
Ned Deily
45e47e58ed
Issue9670: Back out changeset 378b40d71175; test fails on other platforms
...
and on OS X with pydebug.
2011-04-09 14:50:59 -07:00
Antoine Pitrou
131a6414dd
Issue #11757 : select.select() now raises ValueError when a negative timeout
...
is passed (previously, a select.error with EINVAL would be raised). Patch
by Charles-François Natali.
2011-04-09 23:49:58 +02:00
Ned Deily
6e678b4395
Issue #9670 : merge with current
2011-04-09 12:47:12 -07:00
Ned Deily
15012a67d2
Issue #9670 : merge with 3.2
2011-04-09 12:37:55 -07:00
Ned Deily
517ac72b00
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(Patch by Ronald Oussoren)
2011-04-09 12:32:12 -07:00
Ross Lagerwall
b2a290c329
Merge with 3.2
2011-04-09 20:12:43 +02:00
Ross Lagerwall
226580e6dc
Merge with 3.1
2011-04-09 20:05:04 +02:00
Ross Lagerwall
e620d10701
Issue #11719 : Fix message about unexpected test_msilib skip.
...
Patch by Nadeem Vawda.
2011-04-09 19:30:03 +02:00
Victor Stinner
c790a5346d
faulthandler: dump_tracebacks_later() displays also the timeout
2011-04-08 13:39:59 +02:00
Victor Stinner
de10f4054b
faulthandler: one more time, fix usage of locks in the watchdog thread
...
* Write a new test to ensure that dump_tracebacks_later() still works if
it was already called and then cancelled before
* Don't use a variable to check the status of the thread, only rely on locks
* The thread only releases cancel_event if it was able to acquire it (if
the timer was interrupted)
* The main thread always hold this lock. It is only released when
faulthandler_thread() is interrupted until this thread exits, or at Python
exit.
2011-04-08 12:57:06 +02:00
R David Murray
7ede59d77a
Merge #11492 : fix header truncation on folding when there are runs of split chars.
...
Not a complete fix for this issue.
2011-04-07 21:00:33 -04:00
R David Murray
63d320b44f
Merge: Improve test coverage of _split_ascii method.
2011-04-07 20:42:28 -04:00
Brian Quinlan
d08b330a15
Merge to tip.
2011-04-08 08:30:41 +10:00
Brian Quinlan
f007876bd6
Issue #11777 : Executor.map does not submit futures until iter.next() is called
2011-04-08 08:19:33 +10:00
Antoine Pitrou
b1eb660270
Fix faulthandler timeout to avoid breaking buildbots
2011-04-07 23:22:28 +02:00
Ezio Melotti
6537be7fb2
#7311 : merge with 3.2.
2011-04-07 22:27:44 +03:00
Ezio Melotti
2e3607c1e7
#7311 : fix html.parser to accept non-ASCII attribute values.
2011-04-07 22:03:31 +03:00
Victor Stinner
ff4cd88266
faulthandler: fix compilating without threads
2011-04-07 11:50:25 +02:00
Antoine Pitrou
efbcb18997
Issue #11766 : increase countdown waiting for a pool of processes to start
...
up. Hopefully fixes transient buildbot failures.
2011-04-06 22:54:14 +02:00
Antoine Pitrou
540ab064e2
Issue #11766 : increase countdown waiting for a pool of processes to start
...
up. Hopefully fixes transient buildbot failures.
2011-04-06 22:51:17 +02:00
R David Murray
8debacb51c
#1690608 : make formataddr RFC2047 aware.
...
Patch by Torsten Becker.
2011-04-06 09:35:57 -04:00
R David Murray
a0b1c77a19
Merge #11605 : don't use set/get_payload in feedparser; they do conversions.
2011-04-06 08:16:13 -04:00
Senthil Kumaran
736975a771
merge from 3.2
2011-04-06 14:16:08 +08:00
Senthil Kumaran
ae664fb528
Merge from 3.1
2011-04-06 14:11:09 +08:00
Senthil Kumaran
8f377a3bbe
Issue #10762 : Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.
2011-04-06 12:54:06 +08:00
Alexander Belopolsky
28deea1fa5
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 20:43:15 -04:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
R David Murray
3dcf745a61
Merge #11589 : add additional tests for the email quoprimime module.
2011-03-23 14:29:49 -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
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
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
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
Victor Stinner
451385d8f8
Issue #8651 : PyArg_Parse*() functions raise an OverflowError if the file
...
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
(length bigger than 2^31-1 bytes).
2011-03-21 03:22:50 +01:00
Victor Stinner
ee525de6a9
merge
2011-03-21 02:12:09 +01:00
Victor Stinner
13ed2ea7a2
Issue #10864 has been fixed: remove the workaround
2011-03-21 02:11:01 +01:00
Antoine Pitrou
25871dac00
Merge
2011-03-21 00:28:52 +01:00
Antoine Pitrou
03637052ec
Try to strengthen test_httpservers (issue #11617 )
2011-03-21 00:27:45 +01:00
Antoine Pitrou
cb342182ee
Try to strengthen test_httpservers (issue #11617 )
2011-03-21 00:26:51 +01:00
Antoine Pitrou
6d58d64919
Issue #11127 : Raise a TypeError when trying to pickle a socket object.
2011-03-20 23:56:36 +01:00
Victor Stinner
b938bcd211
(merge) Issue #11395 : io.FileIO().write() clamps the data length to 32,767
...
bytes on Windows if the file is a TTY to workaround a Windows bug. The Windows
console returns an error (12: not enough space error) on writing into stdout if
stdout mode is binary and the length is greater than 66,000 bytes (or less,
depending on heap usage).
2011-03-20 23:37:55 +01:00
Victor Stinner
e0daff1c61
Issue #11395 : io.FileIO().write() clamps the data length to 32,767 bytes on
...
Windows if the file is a TTY to workaround a Windows bug. The Windows console
returns an error (12: not enough space error) on writing into stdout if
stdout mode is binary and the length is greater than 66,000 bytes (or less,
depending on heap usage).
2011-03-20 23:36:35 +01:00
Victor Stinner
6ae1e7f04e
Issue #3080 : imp.load_module() accepts None for the module path
...
imp.find_module() returns None as module path for builtin and frozen builtins.
2011-03-20 22:37:17 +01:00
Éric Araujo
6a1454f3a4
Use proper gettext plural forms in optparse ( closes #4391 ).
...
Original patch by Dwayne Bailey.
2011-03-20 19:59:25 +01:00
Antoine Pitrou
ec60e31bad
Merge
2011-03-20 17:42:55 +01:00
Antoine Pitrou
7903cb727e
Merge
2011-03-20 17:36:26 +01:00
Antoine Pitrou
8189ab85e3
Call reap_children() where appropriate
2011-03-20 17:35:32 +01:00
Antoine Pitrou
68c9592d33
Call reap_children() at the end of test_posix
2011-03-20 17:33:57 +01:00
Ross Lagerwall
dedf6cf387
Issue #11615 : Fix sporadic buildbot failures related to #10812 .
2011-03-20 18:27:05 +02:00
Ezio Melotti
45763d0d12
Merge with 3.2.
2011-03-20 15:34:28 +02:00
Ezio Melotti
0123e055fa
Add a check for sys.warnoptions in regrtest.
2011-03-20 15:09:26 +02:00
Senthil Kumaran
a7f43cc09c
branch merge 3.2
2011-03-20 05:33:09 +08:00
Senthil Kumaran
acbaa923b8
Call unfakehttp in order to close connection while opening the connection through a fakehttp object.
...
Address issue11609 - urllib related buildbots failure.
2011-03-20 05:30:16 +08:00
Antoine Pitrou
7b98d02302
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:04:13 +01:00
Antoine Pitrou
877766dee8
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:00:37 +01:00
Senthil Kumaran
d91ffcafcb
Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.
2011-03-19 17:25:27 +08:00
Nick Coghlan
b3c728fd89
Close #11577 : Improve binhex test coverage and fix ResourceWarning
2011-03-16 21:26:40 -04:00
R David Murray
a88da67bcb
#11578 : add unit tests for timeit module.
...
Patch by Michael Henry.
2011-03-16 17:32:27 -04:00
Michael Foord
07926f024a
Closes issue 11503. Improves test coverage of posixpath.
2011-03-16 17:19:16 -04:00
Nick Coghlan
7462fa654b
Backport improved test coverage for string.py
2011-03-16 14:30:45 -04:00
Nick Coghlan
8ed3cf3a4b
Close #11560 : Improve test coverage of shutil
2011-03-16 14:05:35 -04:00
Nick Coghlan
abf202d798
Close #11548 : Correctly handle format argument in shutil.unpack_archive
2011-03-16 13:52:20 -04:00
Ezio Melotti
3b3499ba69
#11565 : Merge with 3.1.
2011-03-16 11:35:38 +02:00
Ezio Melotti
13925008dc
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 11:05:33 +02:00
Jesus Cea
cee3655568
Close issue #8600 : test_gdb failures because innocuous warnings
2011-03-16 01:33:16 +01:00
Michael Foord
dcebe0f2dc
Closes issue 11133. Fixes two cases where inspect.getattr_static could trigger code execution
2011-03-15 19:20:44 -04:00
Raymond Hettinger
29dcaad6eb
Issue 11510: Fix BUILD_SET optimizer bug.
2011-03-15 14:50:16 -07:00
Antoine Pitrou
126848a2d8
Fix whitespace in test_subprocess
2011-03-15 21:17:10 +01:00
Antoine Pitrou
e870623e96
Merge fix for issue #11501
2011-03-15 21:05:36 +01:00
Antoine Pitrou
2c50a09ac4
On behalf of Tarek: Issue #11501 : disutils.archive_utils.make_zipfile no
...
longer fails if zlib is not installed. Instead, the zipfile.ZIP_STORED
compression is used to create the ZipFile. Patch by Natalia B. Bidart.
2011-03-15 21:02:59 +01:00
Gregory P. Smith
961e0e85c0
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
e14e9c2218
Add unittests demonstrating issue #11432 .
2011-03-15 14:55:17 -04:00
R David Murray
56a9d7e3da
#11554 : reactivate test_email_codecs, and make it pass.
...
The fix is to charset.py, which was not doing the encoding to the
correct output character set when doing a body_encode for either
the shift-jis or euc-jp charsets. There's also a fix for handling
a bytes input in encoders.py.
Patch by Michael Henry, comment changes by me.
2011-03-15 12:20:02 -04:00
Gregory P. Smith
de3909da6b
merge 141bbcb19c06
2011-03-15 02:13:09 -04:00
Gregory P. Smith
81ce68597c
Fix the @test_NNNN_tmp file terds being left in whatever your $PWD was
...
when test_subprocess was run.
2011-03-15 02:04:11 -04:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
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
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
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