Commit graph

15493 commits

Author SHA1 Message Date
Antoine Pitrou
8c8f1ac46c Oops 2010-10-14 18:32:54 +00:00
Antoine Pitrou
b3a88b5c42 Really fix bug 2010-10-14 18:31:39 +00:00
Barry Warsaw
270800c801 Fix issue 10094, by narrowing down the test for PROXY environment variables.
Ubuntu 10.10 introduced $UBUNTU_MENUPROXY into the default user environment,
and that's what's tripping up the code.
2010-10-14 18:10:34 +00:00
Alexander Belopolsky
1bcbaab15a Issue 9183: Intern UTC timezone. 2010-10-14 17:03:51 +00:00
Antoine Pitrou
5bc4fa7a49 Replace the "compiler" resource with the more generic "cpu", so
as to mark CPU-heavy tests.
2010-10-14 15:34:31 +00:00
Antoine Pitrou
b1c5496738 Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
where supported by the system.  Patch by Nikita Vetoshkin.
2010-10-14 15:05:38 +00:00
Senthil Kumaran
383c32dd38 Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocol 2010-10-14 11:57:35 +00:00
Antoine Pitrou
1b03f2ca83 Inherit interpreter flags in parallel testing 2010-10-14 11:12:00 +00:00
Victor Stinner
89f3ad10d2 test_subprocess doesn't need to C locale to test os.environb
Improve also the comment to explain why C locale is needed to test os.environ.
2010-10-14 10:43:31 +00:00
Victor Stinner
ebc78d23ef test_subprocess: use C locale to get ascii locale encoding 2010-10-14 10:38:17 +00:00
Georg Brandl
f5247e35c1 #9964: fix running test_cmd_line_script under -O and -OO. 2010-10-14 08:08:56 +00:00
Georg Brandl
1463a3f833 #9964: fix running test_compileall under -O and -OO. 2010-10-14 07:42:27 +00:00
Georg Brandl
1c2a7b7a69 Better check for "any optimize option given". 2010-10-14 07:34:56 +00:00
Georg Brandl
f99a15c377 #9964: fix running test_xml_etree under -OO. 2010-10-14 07:32:52 +00:00
Georg Brandl
cbeb9fa617 #9964: fix lib2to3 fixer fix_operator when running under -OO. 2010-10-14 07:29:08 +00:00
Georg Brandl
fb3c84a8d9 #9964: fix running test_import under -O or -OO. 2010-10-14 07:24:28 +00:00
Georg Brandl
ebbf63b5b2 #9964: Fix failure of test_dis under -OO. 2010-10-14 07:23:01 +00:00
Georg Brandl
f93390a61e Remove unused imports. 2010-10-14 07:17:44 +00:00
Georg Brandl
9e7dbc8a70 #9964: fix pdb failure to import under -OO. Warn the user that help is simply not available in this case. 2010-10-14 07:14:31 +00:00
Georg Brandl
66c221e993 #9418: first step of moving private string methods to _string module. 2010-10-14 07:04:07 +00:00
Georg Brandl
268e4d4cf3 #1710703: write zipfile structures also in the case of closing a new, but empty, archive. 2010-10-14 06:59:45 +00:00
Antoine Pitrou
a62cbf7cce Fix (hopefully) occasional failures in test_threaded_import.
`done` could be released multiple times because of concurrent
execution.  We convert it to an Event, where calling set()
multiple times is not a problem.
2010-10-13 23:48:39 +00:00
Victor Stinner
d24fc5d7c4 test_sys: Remove workaround #8611
It looks like it is no more needed: Python 3.2 is slowly able to support
non-ascii paths with an ascii locale.
2010-10-13 23:41:57 +00:00
Victor Stinner
8f6b6b0cc3 Issue #9992: Remove PYTHONFSENCODING environment variable. 2010-10-13 22:02:27 +00:00
Antoine Pitrou
6003ff7633 Protect test_smtpnet against connection failures 2010-10-13 17:14:16 +00:00
Antoine Pitrou
834bd81c51 Issue #10041: The signature of optional arguments in socket.makefile()
didn't match that of io.open(), and they also didn't get forwarded
properly to TextIOWrapper in text mode.  Patch by Kai Zhu.
2010-10-13 16:17:14 +00:00
Antoine Pitrou
48e00f3ab6 Use PROTOCOL_SSLv23 in the test HTTPS server, in an attempt to appease the old Gentoo buildbot 2010-10-13 12:06:43 +00:00
Antoine Pitrou
84fa4314ba Print out socket errors in HTTPS server thread 2010-10-13 11:51:05 +00:00
Antoine Pitrou
05d936d2ce Let test_ssl fail gracefully if ssl support is not available 2010-10-13 11:38:36 +00:00
Antoine Pitrou
f26f87ef06 Run a simple HTTPS server when Lib/test/ssl_servers.py is run as __main__ 2010-10-13 11:27:09 +00:00
Antoine Pitrou
8060399654 Typo. It is rather obvious that this code isn't tested :/ 2010-10-13 10:45:16 +00:00
Antoine Pitrou
803e6d670c Issue #9003: http.client.HTTPSConnection, urllib.request.HTTPSHandler and
urllib.request.urlopen now take optional arguments to allow for
server certificate checking, as recommended in public uses of HTTPS.
2010-10-13 10:36:15 +00:00
Brian Curtin
d2e948d720 Implement #7944. Use with throughout the test suite. 2010-10-13 02:56:26 +00:00
Brian Curtin
2c3563f782 Implement #7944. Use with throughout the test suite. 2010-10-13 02:40:26 +00:00
Brian Curtin
5acec04db5 Implement #7944. Use with throughout the test suite. 2010-10-13 02:29:46 +00:00
Brian Curtin
28f96b5b26 Implement #7944. Use with throughout the test suite. 2010-10-13 02:21:42 +00:00
Benjamin Peterson
01e3979757 account for the module __dict__ being cleared when its module is 2010-10-13 01:04:36 +00:00
Benjamin Peterson
5c4bfc4af0 prefer clearing global objects to obscure module.__dict__ bugs #10068 2010-10-12 22:57:59 +00:00
Victor Stinner
b103a937ea Issue #6612: Fix site and sysconfig to catch os.getcwd() error, eg. if the
current directory was deleted.
2010-10-12 22:23:23 +00:00
Antoine Pitrou
04248a8d99 Issue #3873: Speed up unpickling from file objects which have a peek()
method.
2010-10-12 20:51:21 +00:00
Antoine Pitrou
b0182c8ca5 Issue #10075: Add a session_stats() method to SSLContext objects. 2010-10-12 20:09:02 +00:00
Martin v. Löwis
baecd7243a Upgrade to Unicode 6.0.0.
makeunicodedata.py: download all data files from unicode.org,
  switch to extracting Unihan data from zip file.
  Read linebreakprops and derivednormalizationprops even for
  old versions, even though they are not used in delta records.
test:unicode.py: U+11000 is now assigned, use U+14000 instead.
2010-10-11 22:42:28 +00:00
Vinay Sajip
1c71b2af1a Issue #9948: logging: fixed problem of losing filename case information. 2010-10-10 20:36:04 +00:00
Georg Brandl
002fa2de90 Bump to 3.2a3. 2010-10-10 09:40:34 +00:00
Georg Brandl
de0b4d1aba Update pydoc topics. 2010-10-10 09:37:51 +00:00
Antoine Pitrou
dbec780a0b Issue #9437: Fix building C extensions with non-default LDFLAGS. 2010-10-10 09:37:12 +00:00
Vinay Sajip
8382d0fe2e Removed duplicated method. 2010-10-09 11:24:34 +00:00
Antoine Pitrou
81564093a1 Issue #1051: Add a script (Lib/test/make_ssl_certs.py) to generate the
custom certificate and private key files used by SSL-related certs.
2010-10-08 23:06:24 +00:00
Antoine Pitrou
d7931095d5 Add some debug output in verbose mode 2010-10-08 18:46:09 +00:00
Antoine Pitrou
f51d8d3a2e Better Python spawning primitives in test.script_helper, for
easier writing of unit tests and better error reporting.
2010-10-08 18:05:42 +00:00