Terry Jan Reedy
98472b8396
Merge 3.2, issue #17047 : remove doubled words found in 2.7 to
...
3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:58:27 -04:00
Terry Jan Reedy
c30b7b16ea
Issue #17047 : remove doubled words found in 2.7 to 3.4 Lib/*,
...
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:57:08 -04:00
Ezio Melotti
3300878d8c
#11963 : merge with 3.2.
2013-03-11 05:59:55 +02:00
Ezio Melotti
42a541bd49
#11963 : remove human verification from test_parser and test_subprocess.
2013-03-11 05:53:34 +02:00
Ezio Melotti
a51be4c136
#11963 : merge with 3.2.
2013-03-10 03:27:26 +02:00
Ezio Melotti
e7c329954c
#11963 : fix Windows buildbots.
2013-03-10 03:25:45 +02:00
Ezio Melotti
0d7333e0ef
#11963 : merge with 3.2.
2013-03-09 22:20:23 +02:00
Ezio Melotti
3919184014
#11963 : avoid printing messages in test_parser. Initial patch by Éric Araujo.
2013-03-09 22:17:33 +02:00
Raymond Hettinger
d8d6010df3
Sync-up with 3.4 to make maintenance easier.
2013-03-08 23:01:07 -08:00
Raymond Hettinger
f96b2b03bb
Improve comments and variable names.
2013-03-08 21:11:55 -07:00
Victor Stinner
29c0034ff9
Issue #17223 : the test is specific to 32-bit wchar_t type
...
Skip the test on Windows.
2013-03-08 02:33:06 +01:00
R David Murray
965794ed58
Merge: PEP8 fixup on previous patch, remove unused imports in test_email.
2013-03-07 18:16:47 -05:00
R David Murray
b9534f4ed5
PEP8 fixup on previous patch, remove unused import in test_email.
2013-03-07 18:15:13 -05:00
R David Murray
addb0be63e
Merge: #14645 : Generator now emits correct linesep for all parts.
...
Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent. In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with. Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.
2013-03-07 16:43:58 -05:00
R David Murray
e67c6c545b
#14645 : Generator now emits correct linesep for all parts.
...
Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent. In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with. Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.
2013-03-07 16:38:03 -05:00
Ezio Melotti
1f38621a33
#11732 : add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_ctypes.
2013-03-07 18:44:29 +02:00
Ezio Melotti
e846342f8a
#11732 : make suppress_crash_popup() work on Windows XP and Windows Server 2003.
2013-03-07 18:37:13 +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
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
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
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
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
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
352cc8cfc3
Another nit.
2013-03-04 04:19:09 -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
0392342673
Add test for RLock in the lru_cache().
2013-03-04 02:52:50 -05: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
bce9a5d5cd
#17334 : test_index now works with unittest test discovery. Patch by Zachary Ware.
2013-03-02 14:47:07 +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
4f4ba16677
Issue #17331 : Use isidentifier() instead of isalnum() to check for valid identifiers.
2013-03-01 23:43:48 -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
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
Raymond Hettinger
fd54117a68
Don't deadlock on a reentrant call.
2013-03-01 03:47:57 -08: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
520378f81d
#17079 : test_ctypes now works with unittest test discovery. Patch by Zachary Ware.
2013-03-01 10:55:17 +02:00
R David Murray
1cb0cb2fcd
#17296 : backport fix for issue 1692335, naive exception pickling.
2013-02-27 08:57:09 -05: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
1ed6be3793
#17303 : test_future* now work with unittest test discovery. Patch by Zachary Ware.
2013-02-27 10:00:03 +02: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
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
236870439c
Some cosmetic changes
2013-02-26 05:53:23 -08:00