Commit graph

9092 commits

Author SHA1 Message Date
Victor Stinner
eb734f77ad (Merge 3.2) Issue #12100: Don't reset incremental encoders of CJK codecs at
each call to their encode() method anymore, but continue to call the reset()
method if the final argument is True.
2011-05-24 22:24:11 +02:00
Victor Stinner
d48ba0bde5 (Merge 3.1) Issue #12100: Don't reset incremental encoders of CJK codecs at
each call to their encode() method anymore, but continue to call the reset()
method if the final argument is True.
2011-05-24 22:22:17 +02:00
Victor Stinner
6bcbef7da0 Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:17:55 +02:00
Benjamin Peterson
82b00c1d30 move specialized dir implementations into __dir__ methods (closes #12166) 2011-05-24 11:09:06 -05:00
Victor Stinner
99c8b16143 Issue #12049: Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl
module.
2011-05-24 12:05:19 +02:00
Vinay Sajip
b7b1930fe3 Updated test_rollover delay to just over a second. 2011-05-24 07:12:41 +01:00
Victor Stinner
e36f37525b Issue #12105: test_posix skips test_oscloexec() on Linux < 2.6.23 2011-05-24 00:29:43 +02:00
Victor Stinner
fea0f4d517 Issue #12158: Move linux_version() from test_socket to test.support 2011-05-24 00:24:19 +02:00
Ezio Melotti
a9100721e9 Merge heads. 2011-05-24 01:03:33 +03:00
Ezio Melotti
64af7c0d36 #12074: merge with 3.2. 2011-05-24 01:01:08 +03:00
Vinay Sajip
3ef1229b14 Issue #12151: Test now ignores datagram socket errors after server is closed. 2011-05-23 23:00:42 +01:00
Ezio Melotti
84f75c680c #12074: remove the /0 when there are no failures. 2011-05-24 01:00:10 +03:00
Benjamin Peterson
bfcdcf9282 merge heads 2011-05-23 16:30:29 -05:00
Benjamin Peterson
200fe3d747 merge heads 2011-05-23 16:29:50 -05:00
Benjamin Peterson
5cc10b0009 merge 3.2 2011-05-23 16:27:36 -05:00
Benjamin Peterson
f5fcd33be9 merge 3.1 2011-05-23 16:22:42 -05:00
Victor Stinner
08c719eb95 (Merge 3.2) Issue #12074: regrtest displays also the current number of failures 2011-05-23 23:16:09 +02:00
Victor Stinner
a2a895c46c Issue #12074: regrtest displays also the current number of failures 2011-05-23 23:14:05 +02:00
Benjamin Peterson
7963a35b41 correctly lookup __dir__ 2011-05-23 16:11:05 -05:00
Vinay Sajip
acd902be64 Issue #12151: Correction to diagnostic code. 2011-05-23 21:49:09 +01:00
Vinay Sajip
ba980db797 Issue #12151: Added diagnostics to help diagnose intermittent socket errors. 2011-05-23 21:37:54 +01:00
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