Commit graph

9705 commits

Author SHA1 Message Date
Nadeem Vawda
0200016132 Merge: #10883: Fix socket leaks in urllib.request.
* ftpwrapper now uses reference counting to ensure that the underlying socket
  is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs

Initial patch by Victor Stinner.
2011-07-23 14:25:45 +02:00
Nadeem Vawda
08f5f7aa81 Issue #10883: Fix socket leaks in urllib.request.
* ftpwrapper now uses reference counting to ensure that the underlying socket
  is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs

Initial patch by Victor Stinner.
2011-07-23 14:03:00 +02:00
Eli Bendersky
7cd94a1e23 Issue #11049: skip a test that fails on some buildbots 2011-07-23 15:00:31 +03:00
Senthil Kumaran
714c53c540 merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage. Patch by Petter Haggholm. 2011-07-23 18:28:43 +08:00
Senthil Kumaran
de02a7194c Fix closes issue12581 - Increase the urllib.parse test coverage. Patch by Petter Haggholm. 2011-07-23 18:27:45 +08:00
Eli Bendersky
d11c3e32c5 fixing whitespace in the previous commit 2011-07-23 08:51:14 +03:00
Eli Bendersky
6c51999221 Issue #11049: adding some tests to test.support
Based on original patch by Giampaolo Rodola with contributions from R. David Murray
2011-07-23 08:48:53 +03:00
Benjamin Peterson
86f088e8e5 merge 3.2 2011-07-22 10:55:02 -05:00
Benjamin Peterson
2193d2b72b type check AST strings and identifiers
This is related to a21829180423 as well as #12609 and #12610.
2011-07-22 10:50:23 -05:00
Antoine Pitrou
d649480739 Issue #12551: Provide a get_channel_binding() method on SSL sockets so as
to get channel binding data for the current SSL session (only the
"tls-unique" channel binding is implemented).  This allows the
implementation of certain authentication mechanisms such as SCRAM-SHA-1-PLUS.

Patch by Jacek Konieczny.
2011-07-21 01:11:30 +02:00
R David Murray
875048bd4c #665194: support roundtripping RFC2822 date stamps in the email.utils module 2011-07-20 11:41:21 -04:00
Ned Deily
dac7de3102 Issue #12587: Correct faulty test file and reference in test_tokenize.
(Patch by Robert Xiao)
2011-07-19 16:18:11 -07:00
Ned Deily
2ea6fccf64 Issue #12587: Correct faulty test file and reference in test_tokenize.
(Patch by Robert Xiao)
2011-07-19 16:15:27 -07:00
R David Murray
da7af4d7a1 Merge #7484: no more <> around addresses in VRFY or EXPN 2011-07-18 21:42:28 -04:00
R David Murray
4634676cec #7484: no more <> around addresses in VRFY or EXPN
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix.  Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.

The changeset also adds additional indirect tests for quoteaddr (null address
and IDNA-encoded address).
2011-07-18 21:38:54 -04:00
Eric V. Smith
c12469df22 Merge from 3.2. 2011-07-18 14:08:55 -04:00
Eric V. Smith
12ebefc9d3 Closes #12579. Positional fields with str.format_map() now raise a ValueError instead of SystemError. 2011-07-18 14:03:41 -04:00
Benjamin Peterson
bd9c655c97 merge heads 2011-07-17 22:50:12 -05:00
Benjamin Peterson
76f7f4d979 excise the remains of STOP_CODE, which hasn't done anything useful for years 2011-07-17 22:49:50 -05:00
Brett Cannon
52a7d98273 Make warnings accept a callable for showwarnings instead of
restricting itself to just functions and methods (which allows
built-in functions to be used, etc.).

Closes issue #10271. Thanks to lekma for the bug report.
2011-07-17 19:17:55 -07:00
Alex Gaynor
e151d21883 Mark itertools tests of tuple reuse as being specific to CPython. 2011-07-17 16:21:30 -07:00
Antoine Pitrou
d06a065a44 Fix potential resource leaks in concurrent.futures.ProcessPoolExecutor
by joining all queues and processes when shutdown() is called.
2011-07-16 01:13:34 +02:00
Antoine Pitrou
9e42a4dbaa Fix whitespace 2011-07-15 23:09:58 +02:00
Antoine Pitrou
075050f84f test_threaded_import must clean up after itself 2011-07-15 23:09:13 +02:00
Antoine Pitrou
f26ad7149f test_os needs to reap threads 2011-07-15 23:00:56 +02:00
Antoine Pitrou
afed6ecf21 Merge from 3.2 2011-07-15 22:43:33 +02:00
Antoine Pitrou
f7f54759b5 Use test.script_helper in test_pydoc 2011-07-15 22:42:12 +02:00
Antoine Pitrou
a6e81a23b3 test_pydoc needs to cleanup after itself 2011-07-15 22:32:25 +02:00
Antoine Pitrou
707f228b1e Try harder to reap dangling threads in test.support.reap_threads(). 2011-07-15 22:29:44 +02:00
Antoine Pitrou
428bc6c48f Issue #12573: Add resource checks for dangling Thread and Process objects. 2011-07-15 22:15:38 +02:00
Antoine Pitrou
c081c0c6a0 Issue #12573: Add resource checks for dangling Thread and Process objects. 2011-07-15 22:12:24 +02:00
Antoine Pitrou
91fe8157fd Merge 2011-07-15 21:19:27 +02:00
Antoine Pitrou
b8298a01e6 Merge 2011-07-15 21:19:02 +02:00
Antoine Pitrou
9b43b6e14e Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.
2011-07-15 21:18:18 +02:00
Antoine Pitrou
ff35050493 Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.
2011-07-15 21:17:14 +02:00
Antoine Pitrou
8cdc40e3b0 Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.
2011-07-15 21:15:07 +02:00
Benjamin Peterson
58059197cc merge heads 2011-07-15 14:11:23 -05:00
Benjamin Peterson
1a41d7d51d merge heads 2011-07-15 14:10:59 -05:00
Benjamin Peterson
e92cd0ce98 merge 3.2 (#11627) 2011-07-15 14:10:35 -05:00
Benjamin Peterson
5afa03a72e catch nasty exception classes with __new__ that doesn't return a exception (closes #11627)
Patch from Andreas Stührk.
2011-07-15 14:09:26 -05:00
Antoine Pitrou
8f629059db Make sure to reap worker threads and processes at the end of test_concurrent_futures 2011-07-15 20:26:35 +02:00
Antoine Pitrou
9470ab43a9 Make sure to reap worker threads and processes at the end of test_concurrent_futures 2011-07-15 20:25:20 +02:00
Éric Araujo
af5bacf9bb Always use repr for regrtest resources names 2011-07-15 17:50:15 +02:00
Victor Stinner
d33344a030 Add cgi.closelog() function to close the log file 2011-07-14 22:28:36 +02:00
Benjamin Peterson
31f4beb15e add a contextmanager to disable the gc 2011-07-14 12:48:01 -05:00
Benjamin Peterson
c917494528 merge 3.2 2011-07-14 10:03:53 -05:00
Benjamin Peterson
eef80b6e70 this should be an identity test 2011-07-14 10:03:35 -05:00
Victor Stinner
bc18838972 (merge 3.2) Issue #12250: test_socketserver uses a timeout of 60 seconds
instead of 20

test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 15:36:16 +02:00
Ezio Melotti
e73d49d328 Merge with 3.2. 2011-07-14 15:57:12 +03:00
Victor Stinner
5702ae6f3f Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 14:53:24 +02:00