Commit graph

9705 commits

Author SHA1 Message Date
Victor Stinner
b79f28ccbd Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if
the file is closed.
2011-05-25 22:09:03 +02:00
Éric Araujo
559b5f1ca0 Minor cleanup in sysconfig.
Also remove outdated and unhelpful docstrings in test_sysconfig.
2011-05-25 18:21:43 +02:00
Benjamin Peterson
dac9acedfd test that object has a __dir__() implementation 2011-05-25 09:33:37 -05:00
Benjamin Peterson
81b21d7766 test values and types of (True/False).(imag/real) 2011-05-25 09:21:46 -05:00
Victor Stinner
2e2baa9208 Issue #12049: test_ssl now checks also that RAND_bytes() raises an error if
there is not enough entropy.
2011-05-25 11:15:16 +02:00
Victor Stinner
c13ef66649 Issue #8407: Fix the signal handler of the signal module: if it is called
twice, it now writes the number of the second signal into the wakeup fd.
2011-05-25 02:35:58 +02:00
Benjamin Peterson
b45c7087aa excellent place for assertRaises 2011-05-24 19:31:01 -05:00
Victor Stinner
be6210363e Issue #8533: regrtest replaces also sys.stdout on Windows
Replace sys.stdout to use backslashreplace. Use '\n' newline on all operating
systems.
2011-05-25 02:01:55 +02:00
Victor Stinner
62666e1db1 (Merge 3.2) Issue #12057: Add tests for the HZ encoding 2011-05-25 00:17:13 +02:00
Victor Stinner
8ed8416c2b (Merge 3.1) Issue #12057: Add tests for the HZ encoding 2011-05-25 00:16:43 +02:00
Victor Stinner
8fdfc20fc4 Issue #12057: Add tests for the HZ encoding 2011-05-25 00:06:51 +02:00
Victor Stinner
17dc81951a (Merge 3.2) Issue #12070: Fix the Makefile parser of the sysconfig module to
handle correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
2011-05-24 23:38:03 +02:00
Victor Stinner
1273b7cd9c Issue #12070: Fix the Makefile parser of the sysconfig module to handle
correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
2011-05-24 23:37:07 +02:00
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