Ezio Melotti
87a249c119
#11732 : merge with 3.3.
2013-03-05 20:33:38 +02:00
Ezio Melotti
e1857d999d
Fix indentation.
2013-03-05 20:31:34 +02:00
Ezio Melotti
25a404520d
#11732 : add a new suppress_crash_popup() context manager to test.support.
2013-03-05 20:26:17 +02:00
Senthil Kumaran
df1d3c5c4b
Reverting the changeset b87792757ee8 made for Issue #12921
2013-03-05 02:28:18 -08:00
Senthil Kumaran
884f0585a4
Reverting the changeset 5d76a4746d9d made for Issue #12921
2013-03-05 02:26:50 -08:00
Senthil Kumaran
1e7551dc87
Reverting the changeset 5126e62c60af made for Issue #12921
2013-03-05 02:25:58 -08:00
Senthil Kumaran
24431f1802
Fix Issue #12921 : BaseHTTPServer's send_error should send the correct error
...
response message when send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:26:33 -08:00
Senthil Kumaran
c37f835a43
Fix Issue #12921 : BaseHTTPServer's send_error should send the correct error
...
response message when send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:23:44 -08:00
Senthil Kumaran
3fb066d286
Fix Issue #12921 : BaseHTTPServer's send_error should send the correct error
...
response message when send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:22:57 -08:00
Raymond Hettinger
f7f8972a59
merge
2013-03-05 02:11:37 -05:00
Raymond Hettinger
2e8d9a799d
Fix typo
2013-03-05 02:11:10 -05:00
Raymond Hettinger
f6b26676bc
Issue #16098 : Update heapq.nsmallest to use the same algorithm as nlargest.
...
This removes the dependency on bisect and it bring the pure Python code
in-sync with the C code.
2013-03-05 01:36:30 -05:00
Raymond Hettinger
975a8e8f76
Use LT in all comparisons
2013-03-05 01:17:57 -05:00
Antoine Pitrou
221760a3aa
Issue #17278 : Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.
2013-03-04 20:35:55 +01:00
Antoine Pitrou
31584e30ab
Issue #17278 : Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.
2013-03-04 20:33:36 +01:00
Antoine Pitrou
44d5214927
Issue #17278 : Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.
2013-03-04 20:30:01 +01:00
Ezio Melotti
63f40d7af4
#17346 : merge with 3.3.
2013-03-04 15:21:14 +02:00
Ezio Melotti
296069301a
#17346 : merge with 3.2.
2013-03-04 15:19:02 +02:00
Ezio Melotti
aaef34483c
#17346 : make sure pickle tests are run against all protocols. Initial patch by Marius Gedminas.
2013-03-04 15:17:56 +02:00
Raymond Hettinger
bb5f48008d
Merge
2013-03-04 04:20:46 -05:00
Raymond Hettinger
352cc8cfc3
Another nit.
2013-03-04 04:19:09 -05:00
Raymond Hettinger
32e2ff5dc5
merge
2013-03-04 03:54:45 -05:00
Raymond Hettinger
f2c17a9276
Fix other re-entrancy nits for the lru_cache.
...
Keep references for oldkey and oldvalue so they can't
trigger a __del__ method to reenter our thread.
Move the cache[key]=link step to the end, after the link
data is in a consistent state.
Under exotic circumstances, the cache[key]=link step could
trigger reentrancy (i.e. the key would have to have a hash
exactly equal to that for another key in the cache and the
key would need a __eq__ method that makes a reentrant call
our cached function).
2013-03-04 03:34:09 -05:00
Raymond Hettinger
6c2078d545
merge
2013-03-04 02:58:40 -05:00
Raymond Hettinger
0392342673
Add test for RLock in the lru_cache().
2013-03-04 02:52:50 -05:00
Raymond Hettinger
b6c65b2aff
Issue #16098 : Update heapq.nsmallest to use the same algorithm as nlargest.
...
This removes the dependency on bisect and it bring the pure Python code
in-sync with the C code.
2013-03-04 02:20:31 -05:00
Nadeem Vawda
6386e17f39
Issue #13898 : test_ssl no longer prints a spurious stack trace on Ubuntu.
2013-03-03 22:48:15 +01:00
Nadeem Vawda
ad246bfb71
Issue #13898 : test_ssl no longer prints a spurious stack trace on Ubuntu.
2013-03-03 22:44:22 +01:00
Nadeem Vawda
7b39b9b51b
Issue #13898 : test_ssl no longer prints a spurious stack trace on Ubuntu.
2013-03-03 22:31:21 +01:00
Ezio Melotti
04a29554c1
#17032 : The "global" in the "NameError: global name 'x' is not defined" error message has been removed. Patch by Ram Rachum.
2013-03-03 15:12:44 +02:00
Ezio Melotti
ee71f4a8a4
#17334 : merge with 3.3.
2013-03-02 14:48:01 +02:00
Ezio Melotti
bce9a5d5cd
#17334 : test_index now works with unittest test discovery. Patch by Zachary Ware.
2013-03-02 14:47:07 +02:00
Ezio Melotti
5c67e22145
#17333 : merge with 3.3.
2013-03-02 14:33:05 +02:00
Ezio Melotti
02bf701b25
#17333 : test_imaplib now works with unittest test discovery. Patch by Zachary Ware.
2013-03-02 14:25:56 +02:00
Raymond Hettinger
a35e281200
Merge
2013-03-01 23:51:26 -08:00
Raymond Hettinger
4f4ba16677
Issue #17331 : Use isidentifier() instead of isalnum() to check for valid identifiers.
2013-03-01 23:43:48 -08:00
Raymond Hettinger
794568f0ad
Merge
2013-03-01 23:21:00 -08:00
Raymond Hettinger
409f663091
Remove dependency on dummy_threading (to solve a bootstrap problem).
2013-03-01 23:20:13 -08:00
Ezio Melotti
4b843a7492
#17312 : unlink a file that test_aifc was leaving around.
2013-03-01 21:10:26 +02:00
Ezio Melotti
dc99e0d396
#17315 : merge with 3.3.
2013-03-01 21:00:48 +02:00
Ezio Melotti
7b3e571c16
#17315 : merge with 3.2.
2013-03-01 21:00:05 +02:00
Ezio Melotti
136726c59f
#17315 : unlink a file that test_posixpath was leaving around.
2013-03-01 20:59:17 +02:00
Ezio Melotti
fbd26867ef
#16935 : update test_crypt now that unittest discover understands SkipTest.
2013-03-01 14:53:45 +02:00
Ezio Melotti
eae2b38948
#16935 : unittest now counts the module as skipped if it raises SkipTest, instead of counting it as an error. Patch by Zachary Ware.
2013-03-01 14:47:50 +02:00
Raymond Hettinger
dacb6858e8
Merge
2013-03-01 03:48:30 -08:00
Raymond Hettinger
fd54117a68
Don't deadlock on a reentrant call.
2013-03-01 03:47:57 -08:00
Ezio Melotti
c0b64663d9
#17082 : merge with 3.3.
2013-03-01 11:24:42 +02:00
Ezio Melotti
f79493bf9e
#17082 : test_dbm* now work with unittest test discovery. Patch by Zachary Ware.
2013-03-01 11:23:28 +02:00
Ezio Melotti
6cc46d35f1
#17079 : merge with 3.3.
2013-03-01 10:56:35 +02:00
Ezio Melotti
520378f81d
#17079 : test_ctypes now works with unittest test discovery. Patch by Zachary Ware.
2013-03-01 10:55:17 +02:00
Vinay Sajip
f9e9754c47
Closes #17313 : Deleted test file created by test_logging.
2013-02-27 23:33:52 +00:00
Chris Jerdonek
517e925614
Issue #17283 : Share code between __main__.py and regrtest.py in Lib/test.
...
This commit also removes TESTCWD from regrtest.py's global namespace.
2013-02-27 09:02:53 -08:00
R David Murray
1cb0cb2fcd
#17296 : backport fix for issue 1692335, naive exception pickling.
2013-02-27 08:57:09 -05:00
Ezio Melotti
e1569e550c
#17304 : merge with 3.3.
2013-02-27 10:09:46 +02:00
Ezio Melotti
e601fb0691
#17304 : test_hash now works with unittest test discovery. Patch by Zachary Ware.
2013-02-27 10:09:12 +02:00
Ezio Melotti
28050255cc
#17303 : merge with 3.3.
2013-02-27 10:01:06 +02:00
Ezio Melotti
1ed6be3793
#17303 : test_future* now work with unittest test discovery. Patch by Zachary Ware.
2013-02-27 10:00:03 +02:00
Victor Stinner
742c5961dd
(Merge 3.3) Issue #17223 : Fix test_array on Windows (16-bit wchar_t/Py_UNICODE)
2013-02-26 22:52:25 +01:00
Victor Stinner
c472c5d7bd
Issue #17223 : Fix test_array on Windows (16-bit wchar_t/Py_UNICODE)
2013-02-26 22:52:11 +01:00
Petri Lehtinen
e55aa69efc
Issue #14720 : Enhance sqlite3 microsecond conversion, document its behavior
2013-02-26 21:46:12 +02:00
Petri Lehtinen
6401ad66a7
Issue #14720 : Enhance sqlite3 microsecond conversion, document its behavior
2013-02-26 21:45:09 +02:00
Petri Lehtinen
5f79409889
Issue #14720 : Enhance sqlite3 microsecond conversion, document its behavior
2013-02-26 21:38:17 +02:00
Eli Bendersky
b26545e7b4
Some cosmetic changes
2013-02-26 05:54:04 -08:00
Eli Bendersky
236870439c
Some cosmetic changes
2013-02-26 05:53:23 -08:00
Richard Oudkerk
0320025f17
Merge
2013-02-26 13:11:11 +00:00
Richard Oudkerk
5b8a3242c4
Merge
2013-02-26 13:00:15 +00:00
Richard Oudkerk
7aaa1ef858
Issue #17018 : Make Process.join() retry if os.waitpid() fails with EINTR.
2013-02-26 12:39:57 +00:00
Victor Stinner
25c3053a4f
(Merge 3.3) Issue #17223 : array module: Fix a crasher when converting an array
...
containing invalid characters (outside range [U+0000; U+10ffff]) to Unicode:
repr(array), str(array) and array.tounicode(). Patch written by Manuel Jacob.
2013-02-26 00:27:56 +01:00
Victor Stinner
29ec595c6a
Issue #17223 : array module: Fix a crasher when converting an array containing
...
invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array),
str(array) and array.tounicode(). Patch written by Manuel Jacob.
2013-02-26 00:27:38 +01:00
Brett Cannon
c190389834
Issue #17220 : two fixes for changeset 2528e4aea338.
...
First, because the mtime can exceed 4 bytes, make sure to mask it down to 4
bytes before getting its little-endian representation for writing out to a .pyc
file.
Two, cap an rsplit() call to 1 split, else can lead to too many values being
returned for unpacking.
2013-02-25 17:10:11 -05:00
Serhiy Storchaka
91d0ca72de
Issue #15083 : Convert ElementTree doctests to unittests.
2013-02-25 17:21:42 +02:00
Serhiy Storchaka
f8cf59e8aa
Issue #15083 : Convert ElementTree doctests to unittests.
2013-02-25 17:20:59 +02:00
Serhiy Storchaka
39e47f94ec
Issue #17220 : Little cleanup of _bootstrap.py.
2013-02-25 15:40:33 +02:00
Serhiy Storchaka
bd9b56162b
Issue #1470548 : Add test for fragment producing with XMLGenerator.
2013-02-25 13:47:20 +02:00
Serhiy Storchaka
d9a550b5e1
Issue #1470548 : Add test for fragment producing with XMLGenerator.
2013-02-25 13:46:32 +02:00
Serhiy Storchaka
a5f13d2a5f
Issue #1470548 : Add test for fragment producing with XMLGenerator.
2013-02-25 13:46:10 +02:00
Giampaolo Rodola'
fca677a26a
Fix #17197 : profile/cProfile modules refactored so that code of run() and runctx() utility functions is not duplicated in both modules.
2013-02-25 11:36:40 +01:00
R David Murray
d7c59e101f
Merge #17275 : Fix class name in init errors in C bufferedio classes.
...
This fixes an apparent copy-and-paste error.
Patch by Manuel Jacob.
2013-02-23 22:21:48 -05:00
R David Murray
9f10f56d13
Merge #17275 : Fix class name in init errors in C bufferedio classes.
...
This fixes an apparent copy-and-paste error.
Patch by Manuel Jacob.
2013-02-23 22:07:55 -05:00
R David Murray
67bfe80758
#17275 : Fix class name in init errors in C bufferedio classes.
...
This fixes an apparent copy-and-paste error.
Patch by Manuel Jacob.
2013-02-23 21:51:05 -05:00
Petri Lehtinen
0562379a7c
Revert "Issue #16121 : Fix line number accounting in shlex"
2013-02-23 23:13:03 +01:00
Petri Lehtinen
e766c742c1
Revert "Issue #16121 : Fix line number accounting in shlex"
2013-02-23 23:12:35 +01:00
Petri Lehtinen
0362b54fd9
Revert "Issue #16121 : Fix line number accounting in shlex"
2013-02-23 23:12:03 +01:00
Petri Lehtinen
978b4d6d29
Issue #16121 : Fix line number accounting in shlex
2013-02-23 22:11:06 +01:00
Petri Lehtinen
6d61eaa0d0
Issue #16121 : Fix line number accounting in shlex
2013-02-23 22:09:51 +01:00
Petri Lehtinen
7a05113ccf
Issue #16121 : Fix line number accounting in shlex
2013-02-23 22:08:07 +01:00
Petri Lehtinen
914ec6f718
Issue #16695 : Document how glob handles filenames starting with a dot
2013-02-23 19:56:15 +01:00
Petri Lehtinen
e2c114733b
Issue #16695 : Document how glob handles filenames starting with a dot
2013-02-23 19:55:36 +01:00
Petri Lehtinen
ee4a20bad6
Issue #16695 : Document how glob handles filenames starting with a dot
2013-02-23 19:53:27 +01:00
Petri Lehtinen
e460f26b25
Issue #14720 : sqlite3: Convert datetime microseconds correctly
2013-02-23 19:10:29 +01:00
Petri Lehtinen
f484efdb60
Issue #14720 : sqlite3: Convert datetime microseconds correctly
2013-02-23 19:09:45 +01:00
Petri Lehtinen
8b945148e3
Issue #14720 : sqlite3: Convert datetime microseconds correctly
...
Patch by Lowe Thiderman
2013-02-23 19:05:56 +01:00
Petri Lehtinen
20054477f4
Issue #15132 : Allow a list for the defaultTest argument of unittest.TestProgram
...
Patch by Jyrki Pulliainen
2013-02-23 18:55:49 +01:00
Ezio Melotti
36aed8fa4c
#12749 : merge with 3.3.
2013-02-23 08:40:39 +02:00
Ezio Melotti
eadece2865
#12749 : add a test for non-BMP ranges in character classes.
2013-02-23 08:40:07 +02:00
Ezio Melotti
33136fa6e7
#17217 : merge with 3.3.
2013-02-23 07:58:28 +02:00
Ezio Melotti
4ad8eec09e
#17217 : merge with 3.2.
2013-02-23 07:57:53 +02:00
Ezio Melotti
507eb09ad6
#17217 : fix UnicodeEncodeErrors errors in test_format by printing ASCII only.
2013-02-23 07:53:56 +02:00
Ezio Melotti
1ca8794f10
#17249 : check for the availability of the thread module.
2013-02-23 06:42:19 +02:00
Ezio Melotti
8a909368b9
#17249 : merge with 3.3.
2013-02-23 05:59:37 +02:00
Ezio Melotti
35246bd5b1
#17249 : merge with 3.2.
2013-02-23 05:58:38 +02:00
Ezio Melotti
29267c81ce
#17249 : convert a test in test_capi to use unittest and reap threads.
2013-02-23 05:52:46 +02:00
Ezio Melotti
8a268b985f
#17255 : merge with 3.3.
2013-02-21 23:17:34 +02:00
Ezio Melotti
600b71167e
#17255 : merge with 3.2.
2013-02-21 23:17:08 +02:00
Ezio Melotti
0f4377c100
#17255 : test short-circuiting behavior of any()/all(). Patch by Wim Glenn.
2013-02-21 23:15:40 +02:00
Serhiy Storchaka
920007ad76
Issue #17225 : JSON decoder now counts columns in the first line starting
...
with 1, as in other lines.
2013-02-21 20:26:52 +02:00
Serhiy Storchaka
ed891c1517
Issue #17225 : JSON decoder now counts columns in the first line starting
...
with 1, as in other lines.
2013-02-21 20:21:21 +02:00
Serhiy Storchaka
c510a048ba
Issue #17225 : JSON decoder now counts columns in the first line starting
...
with 1, as in other lines.
2013-02-21 20:19:16 +02:00
Serhiy Storchaka
fc9bf110a2
Issue #17248 : Fix os.*chown() testing when user is in root group.
2013-02-21 14:35:51 +02:00
Serhiy Storchaka
9d202ba252
Issue #17248 : Fix os.*chown() testing when user is in root group.
2013-02-21 14:34:59 +02:00
Serhiy Storchaka
a2964b3175
Issue #17248 : Fix os.*chown() testing when user is in root group.
2013-02-21 14:34:36 +02:00
Ezio Melotti
d8bc0a3693
Merge DeprecationWarnings silencing in test_urllib from 3.3.
2013-02-21 02:55:56 +02:00
Ezio Melotti
79b99dba0f
Silence DeprecationWarnings in test_urllib.
2013-02-21 02:41:42 +02:00
Ezio Melotti
09d9d0f385
Merge DeprecationWarnings silencing in test_unicode from 3.3.
2013-02-21 00:01:44 +02:00
Ezio Melotti
51e243f22e
Silence DeprecationWarnings in test_unicode.
2013-02-20 23:56:01 +02:00
Serhiy Storchaka
205e82057d
Issue #17248 : Fix os.*chown() testing when user has group root.
2013-02-20 19:49:12 +02:00
Serhiy Storchaka
43d9fa2167
Issue #17248 : Fix os.*chown() testing when user has group root.
2013-02-20 19:48:47 +02:00
Serhiy Storchaka
b3d62cefc7
Issue #17248 : Fix os.*chown() testing when user has group root.
2013-02-20 19:48:22 +02:00
Serhiy Storchaka
07342983ce
Issue #15301 : Enhance os.*chown() testing. Based on patch by Larry Hastings.
2013-02-20 19:43:05 +02:00
Serhiy Storchaka
f0602062b6
Issue #15301 : Enhance os.*chown() testing. Based on patch by Larry Hastings.
2013-02-20 19:42:31 +02:00
Serhiy Storchaka
54db2fd5d0
Issue #15301 : Enhance os.*chown() testing. Based on patch by Larry Hastings.
2013-02-20 19:40:25 +02:00
Ezio Melotti
1758d9cf8e
#17143 : merge with 3.3.
2013-02-20 02:54:50 +02:00
Ezio Melotti
5a9ce077e0
#17143 : fix buildbot failures on Windows.
2013-02-20 02:52:49 +02:00
R David Murray
87632f1a9e
#6623 : Add explicit deprecation warning for ftplib.Netrc.
2013-02-19 18:32:28 -05:00
R David Murray
8aa164b395
Merge: #13700 : Make imap.authenticate with authobject work.
...
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.
Original patch by Erno Tukia.
2013-02-19 12:20:32 -05:00
R David Murray
6cd6f01556
Merge: #13700 : Make imap.authenticate with authobject work.
...
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.
Original patch by Erno Tukia.
2013-02-19 12:19:13 -05:00
R David Murray
774a39f26e
#13700 : Make imap.authenticate with authobject work.
...
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.
Original patch by Erno Tukia.
2013-02-19 12:17:31 -05:00
Serhiy Storchaka
789ee0f31f
Disable posixpath.realpath() tests on Windows (fix for issue #6975 ).
2013-02-18 13:33:37 +02:00
Serhiy Storchaka
41d4ebbf43
Disable posixpath.realpath() tests on Windows (fix for issue #6975 ).
2013-02-18 13:33:13 +02:00
Serhiy Storchaka
1548ed6698
Disable posixpath.realpath() tests on Windows (fix for issue #6975 ).
2013-02-18 13:32:30 +02:00
Serhiy Storchaka
2a47954895
Fix posixpath.realpath() for multiple pardirs (fixes issue #6975 ).
2013-02-18 12:22:05 +02:00
Serhiy Storchaka
407aa2df2a
Fix posixpath.realpath() for multiple pardirs (fixes issue #6975 ).
2013-02-18 12:21:30 +02:00
Serhiy Storchaka
467393dff5
Fix posixpath.realpath() for multiple pardirs (fixes issue #6975 ).
2013-02-18 12:21:04 +02:00
Serhiy Storchaka
580e2c1a65
Fix issue #13169 : Reimport MAXREPEAT into sre_constants.py.
2013-02-18 11:23:10 +02:00
Serhiy Storchaka
f844f7e361
Fix issue #13169 : Reimport MAXREPEAT into sre_constants.py.
2013-02-18 11:18:33 +02:00
Serhiy Storchaka
9acb9bc659
Fix issue #13169 : Reimport MAXREPEAT into sre_constants.py.
2013-02-18 11:14:21 +02:00
Raymond Hettinger
1014b6c21c
merge
2013-02-17 01:34:17 -08:00
Raymond Hettinger
d0dbb20f5f
Set cache sizes to a power-of-two
2013-02-17 01:33:37 -08:00
Raymond Hettinger
832eddeafb
Eliminate unnecessary variable.
2013-02-17 00:08:45 -08:00
Eric Snow
5df9f82547
Merge from 3.3
2013-02-16 22:25:31 -07:00
Eric Snow
5b49962f7e
Fixes a FileFinder docstring to reflect an old change.
...
That change was in 1db6553f3f8c.
2013-02-16 22:23:48 -07:00
Eric Snow
9d05c8c0e0
Issue #15022 : Ensure all pickle protocols are supported.
2013-02-16 18:20:32 -07:00
Eric Snow
b5c8f92782
Issue #15022 : Add pickle and comparison support to types.SimpleNamespace.
2013-02-16 16:32:39 -07:00
Serhiy Storchaka
e924ddb23e
Issue #9669 : Protect re against infinite loops on zero-width matching in
...
non-greedy repeat. Patch by Matthew Barnett.
2013-02-16 21:25:40 +02:00
Serhiy Storchaka
b0c75a7dec
Issue #9669 : Protect re against infinite loops on zero-width matching in
...
non-greedy repeat. Patch by Matthew Barnett.
2013-02-16 21:25:05 +02:00
Serhiy Storchaka
fa46816915
Issue #9669 : Protect re against infinite loops on zero-width matching in
...
non-greedy repeat. Patch by Matthew Barnett.
2013-02-16 21:23:53 +02:00
Serhiy Storchaka
0e6b7b5cd2
Issue #8745 : Small speed up zipimport on Windows. Patch by Catalin Iacob.
2013-02-16 17:43:45 +02:00
Serhiy Storchaka
165ee9645b
Issue #13169 : The maximal repetition number in a regular expression has been
...
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:55:54 +02:00
Serhiy Storchaka
a0eb809995
Issue #13169 : The maximal repetition number in a regular expression has been
...
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:54:33 +02:00
Serhiy Storchaka
70ca0210e8
Issue #13169 : The maximal repetition number in a regular expression has been
...
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:47:47 +02:00