Commit Graph

8571 Commits

Author SHA1 Message Date
Victor Stinner d6881701fb Merge 3.2 2011-05-23 14:58:07 +02:00
Victor Stinner b43dd4b8ca Merge 3.1 2011-05-23 14:57:05 +02:00
Victor Stinner 2cca057284 test_codecs now removes the temporay file (created by the test) 2011-05-23 14:51:42 +02:00
Victor Stinner cc6491a0fa Issue #12105: test_posix, add the value of O_CLOEXEC in the error message 2011-05-23 12:54:52 +02:00
Victor Stinner 949c890e48 Issue #12151: test_logging writes debug messages to stderr, not stdout
stdout are lost in buildbots
2011-05-23 01:16:44 +02:00
Victor Stinner 3c8d12d6b8 Issue #10801: Remove a debug print() from test_zipfile 2011-05-22 22:12:27 +02:00
Charles-François Natali 1e045b1831 Issue #12105: Add O_CLOEXEC to the os module. 2011-05-22 20:42:32 +02:00
Antoine Pitrou f738d33e5d Issue #12138: fix use of transient_internet() in test_urllibnet 2011-05-22 17:35:48 +02:00
Antoine Pitrou a98d26a500 Issue #12138: fix use of transient_internet() in test_urllibnet 2011-05-22 17:35:17 +02:00
Victor Stinner 3c18f259ee regrtest: enable faulthandler in main() instead of if __name__ == '__main__':
So it's also enabled when using "./python -m test".
2011-05-22 15:27:14 +02:00
Mark Dickinson b455e58b95 Issue #12079: Decimal(0).fma(Decimal('inf'), 'not a number') should give a TypeError, not a Decimal.InvalidOperation 2011-05-22 12:53:18 +01:00
Vinay Sajip 39e3528bb2 Issue #12136: Added change to handle non-availability of the ssl module. 2011-05-21 16:46:41 +01:00
Vinay Sajip 9ba876104e Added SSL test for HTTPHandler. 2011-05-21 11:32:15 +01:00
Vinay Sajip 32565b6c02 Added SSL capability to TestHTTPServer. 2011-05-21 00:34:51 +01:00
Charles-François Natali 6071359de1 Issue #1746656: make if_nameindex(), if_indextoname() and if_nametoindex()
accept and return str instead of bytes arrays. Add some more tests.
2011-05-20 16:55:06 +02:00
Victor Stinner ba8ef7a81d (Merge 3.2) test_pydoc: skip PydocServerTest if thread support is disabled 2011-05-20 02:29:55 +02:00
Victor Stinner 62a68f2dbe test_pydoc: skip PydocServerTest if thread support is disabled 2011-05-20 02:29:13 +02:00
Victor Stinner 21809a6938 (Merge 3.2) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.
2011-05-20 00:22:39 +02:00
Victor Stinner 4445ec81c1 (Merge 3.1) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.
2011-05-20 00:18:58 +02:00
Victor Stinner 4925cde1cc Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.
2011-05-20 00:16:09 +02:00
Ezio Melotti 975077a889 Refactor a few tests to use the new requires_zlib decorator. 2011-05-19 22:03:22 +03:00
Ezio Melotti cad648cbc9 Skip tests that require zlib in the packaging tests. Also add a requires_zlib decorator to test.support. 2011-05-19 21:25:10 +03:00
Tarek Ziade 1231a4e097 initial import of the packaging package in the standard library 2011-05-19 13:07:25 +02:00
Giampaolo Rodola' 566f8a646e os.sendfile() test: fix "AttributeError: 'NoneType' object has no attribute 'Thread'" when running tests with --without-threads option.
reference: http://bugs.python.org/issue10882#msg136257
2011-05-18 21:28:39 +02:00
Antoine Pitrou 0d38f2e65f Skip test_smtpnet when ssl is not available 2011-05-18 20:02:50 +02:00
Antoine Pitrou 7a616f2fc5 Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None).
2011-05-18 18:52:20 +02:00
Antoine Pitrou b4410dbea6 Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None).
2011-05-18 18:51:06 +02:00
Antoine Pitrou cc9ca223d6 Also protect ehlo() and quit() with the transient_internet() context manager 2011-05-18 18:04:04 +02:00
Antoine Pitrou e065020680 Issue #8809: The SMTP_SSL constructor and SMTP.starttls() now support
passing a `context` argument pointing to an ssl.SSLContext instance.
Patch by Kasun Herath.
2011-05-18 18:03:09 +02:00
Victor Stinner ae8856fe36 Ooops, add the missing file of the backport of commit 33543b4e0e5d from Python
3.2 (#10801: In zipfile, support different encodings for the header and the
filenames.  Patch by MvL, test by Eli Bendersky.)
2011-05-18 13:48:41 +02:00
Victor Stinner ff1d2f4cc5 Backport commit 33543b4e0e5d from Python 3.2: #10801: In zipfile, support
different encodings for the header and the filenames.  Patch by MvL, test by
Eli Bendersky.
2011-05-18 13:43:23 +02:00
Victor Stinner 5f3b1c4979 (Merge 3.2) Issue #12096: Fix a race condition in
test_threading.test_waitfor(). Patch written by Charles-François Natali.
2011-05-18 00:20:18 +02:00
Victor Stinner 3349bca46d Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
written by Charles-François Natali.
2011-05-18 00:16:14 +02:00
Vinay Sajip bd3d5cf96a Skip some tests in the absence of multiprocessing. 2011-05-17 07:41:18 +01:00
Vinay Sajip ce7c978140 Skip some more tests in the absence of threading. 2011-05-17 07:15:53 +01:00
Victor Stinner 362ce37963 (Merge 3.2) Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't
exist anymore
2011-05-16 17:20:47 +02:00
Victor Stinner e5720b989f (Merge 3.1) Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't
exist anymore
2011-05-16 17:20:07 +02:00
Victor Stinner e98f177ca6 Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore 2011-05-16 17:18:51 +02:00
Victor Stinner 651e1a2e63 (Merge 3.2) Issue #12057: Convert CJK encoding testcase BLOB into multiple text
files
2011-05-16 16:50:23 +02:00
Victor Stinner b67cf161bc (Merge 3.1) Issue #12057: Convert CJK encoding testcase BLOB into multiple text
files
2011-05-16 16:45:15 +02:00
Victor Stinner 033a543ab1 Issue #12057: Convert CJK encoding testcase BLOB into multiple text files 2011-05-16 16:43:38 +02:00
Victor Stinner 118ed71afe (Merge 3.2) Issue #11614: import __hello__ prints "Hello World!". Patch written
by Andreas Stührk.
2011-05-16 16:35:35 +02:00
Victor Stinner 9cd6626f3d (Merge 3.1) Issue #11614: import __hello__ prints "Hello World!". Patch written
by Andreas Stührk.
2011-05-16 16:32:33 +02:00
Victor Stinner c77b931196 Issue #11614: import __hello__ prints "Hello World!". Patch written by Andreas
Stührk.
2011-05-16 16:29:35 +02:00
Victor Stinner d0e11ec5b0 Issue #10756: atexit normalizes the exception before displaying it. Patch by
Andreas Stührk.

Backport a fix already applied to Python 3.2+ (4a82be47a948 + 5060a92a8597).
2011-05-15 18:57:44 +02:00
Ronald Oussoren f4542eb433 (merge from 3.2) Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.
Without this patch python will fail to start properly when the environment
variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is
not compatible with the value during Python's build. This is caused by code
in sysconfig that was only meant to be used in disutils.
2011-05-15 17:13:47 +02:00
Ronald Oussoren 222e89a598 Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.
Without this patch python will fail to start properly when the environment
variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is
not compatible with the value during Python's build. This is caused by code
in sysconfig that was only meant to be used in disutils.
2011-05-15 16:46:11 +02:00
Gregory P. Smith 5ed2e779f1 Issue #1746656: Add if_nameindex, if_nametoindex, if_indextoname
methods to the socket module.
2011-05-15 00:26:45 -07:00
Nadeem Vawda beb552c97c Merge: Fix copy-paste mistake in new zlib test. 2011-05-15 00:49:20 +02:00
Nadeem Vawda 760155cc52 Merge: Fix copy-paste mistake in new zlib test. 2011-05-15 00:48:57 +02:00