Commit Graph

15098 Commits

Author SHA1 Message Date
Alexander Belopolsky 977a684c94 Issue #8983: Corrected docstrings. 2010-08-16 20:17:07 +00:00
Florent Xicluna c9c29e2ab2 I get it wrong in r84097: s/relative/absolute/ 2010-08-16 19:03:05 +00:00
Alexander Belopolsky e29e6bffb5 Issue #665761: functools.reduce() will no longer mask exceptions other
than TypeError raised by the iterator argument.  Also added a test to
check that zip() already behaves similarly.
2010-08-16 18:55:46 +00:00
Florent Xicluna 27354ccec9 Use test.support and unittest features. Fix duplicated test (bad merge in r79033). Fix comment for issue #7902. 2010-08-16 18:41:19 +00:00
Victor Stinner 2460a43a65 Issue #9425: read_directory() is fully unicode compliant
zipimport is now able to load a module with an unencodable filename.
2010-08-16 17:54:28 +00:00
Antoine Pitrou 982c018b32 Remove debug hack 2010-08-16 14:33:42 +00:00
Giampaolo Rodolà 677d95c258 fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto' 2010-08-16 05:08:11 +00:00
Richard Jones daf235032f close down sockets held by asyncore at end of test; closes issue9619 2010-08-16 01:48:14 +00:00
Antoine Pitrou b14ac8c2b0 Save and restore the global asyncore.socket_map, and warn if a test modified it 2010-08-16 00:28:05 +00:00
Antoine Pitrou ed9863685f Add debug output to the asyncore test 2010-08-15 23:28:10 +00:00
Antoine Pitrou f4c7badc02 Put test_ciphers in NetworkedTests 2010-08-15 23:02:22 +00:00
Antoine Pitrou 968dc03f24 Following Ezio's suggestion, force verbose mode on test_ssl to diagnose freezes on 3.x 2010-08-15 22:16:23 +00:00
Florent Xicluna dc692740a8 Replace the deprecated ConfigParser.readfp() method, and fix the incomplete merge in r82293. 2010-08-15 20:16:27 +00:00
Victor Stinner a0241c8587 Fix TESTFN_UNENCODABLE of test.support on Mac OS X 2010-08-15 19:28:21 +00:00
Raymond Hettinger 0b5669c0f5 Fix __all__. 2010-08-15 07:41:40 +00:00
Raymond Hettinger bc653d1abe Remove unused imports 2010-08-15 03:35:24 +00:00
Raymond Hettinger f309828175 Remove the lfu_cache. Add more tests. 2010-08-15 03:30:45 +00:00
Raymond Hettinger 0f56e90f05 Support cache sizes. 2010-08-14 23:52:08 +00:00
Raymond Hettinger 5202fadb2c Localize one more builtin lookup. 2010-08-14 22:29:52 +00:00
Raymond Hettinger cbe8813f18 Add locks to make the caches well behaved in multi-threaded code.
Store builtins in cell variables to speed-up the common path,
reducing the chance of a lock needing to block at all.
2010-08-14 22:22:10 +00:00
Raymond Hettinger d9e8cc6249 Clean-up the cache patch for the re module. 2010-08-14 21:17:48 +00:00
Florent Xicluna 62829dc727 Silence BytesWarning while testing exception 2010-08-14 20:51:58 +00:00
Florent Xicluna 82a3f8afcb Silence the BytesWarning, due to patch r83294 for #9301 2010-08-14 18:30:35 +00:00
Victor Stinner 03c9e1dbc2 Mac OS X denies unencodable filenames (invalid utf-8) 2010-08-14 17:35:20 +00:00
Giampaolo Rodolà 419f704d76 fix issue #8857: provide a test case for socket.getaddrinfo 2010-08-14 16:45:41 +00:00
Antoine Pitrou ab6190f9aa There doesn't seem to be a reason for this test to be disabled. 2010-08-14 16:33:38 +00:00
Antoine Pitrou d151e27446 This is a better resolution than r84021 (because it will also affect
ssl.get_server_certificate()).
2010-08-14 16:32:10 +00:00
Antoine Pitrou 35bebe12e0 Add a reasonable timeout to network SSL tests, so as to avoid buildbot timeouts
when the remote server doesn't answer.
2010-08-14 16:24:38 +00:00
Florent Xicluna aa17106e41 Merged manually from 2.7 branch to 3.x trunk.
------------------------------------------------------------------------
  r79925 | nick.coghlan | 2010-04-10 16:24:36 +0200 (sam. 10 avril 2010)

  Try to turn some buildbots green by allowing test_multiprocessing to
  pass even if it hits the sys.exc_clear code in the threading module, and
  improve the test coverage by making the ctypes dependencies a bit more
  granular (two of the cited ctypes objects don't exist on my system)
  ------------------------------------------------------------------------
2010-08-14 15:56:42 +00:00
Éric Araujo da668ff24f Use a marker in generated MANIFEST files, don't touch files without it. Fixes #8688. 2010-08-14 02:30:34 +00:00
Antoine Pitrou e9b428f997 Reimplement addbuilddir() in C inside getpath.c, so as to execute it
at interpreter startup before importing any non-builtin modules.
Should fix #9589.
2010-08-13 22:25:01 +00:00
Victor Stinner 09c449c7de Fix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLE 2010-08-13 22:23:24 +00:00
Brian Curtin d835cf1c84 Fix #9588. Add sys.executable to two shell=True tests. 2010-08-13 20:42:57 +00:00
Victor Stinner ddfb2c3a33 Issue #9560: Use -b option of the file command in _syscmd_file()
Omit the filename to avoid enconding issues, especially with non encodable
characters in the Python full path.
2010-08-13 16:30:15 +00:00
Antoine Pitrou 3060c4573f Reapply r83877. 2010-08-13 16:27:38 +00:00
Antoine Pitrou 6fdb74f0ae Re-apply r83871. 2010-08-13 16:26:40 +00:00
Victor Stinner b4b8eb9163 Oops, I did it again: add missing \ removed in previous commit 2010-08-13 13:47:18 +00:00
Victor Stinner 11fd4e962d Oops, create TESTFN_UNENCODEABLE from TEST_FN, not TESTFN_UNICODE
test_imp fails on Linux with C locale because TESTFN_UNICODE is not encodable
to ascii.
2010-08-13 13:45:00 +00:00
Victor Stinner 1a4d12d746 Issue #9425: NullImporter constructor is fully unicode compliant
* On non-Windows OSes: the constructor accepts bytes filenames
   and use surrogateescape for unicode filenames
 * On Windows: use GetFileAttributesW() instead of GetFileAttributesA()
2010-08-13 13:07:29 +00:00
Victor Stinner 3d85a6fa04 Set TESTFN_UNENCODEABLE on non-Windows OSes
* Use 0xff byte on non-Windows OSes
 * mbcs is now really strict by default: i closed the issue #850997, so use the
   filesystem encoding and not Latin-1
 * Rename TESTFN_UNICODE_UNENCODEABLE to TESTFN_UNENCODEABLE
2010-08-13 13:02:04 +00:00
Eric Smith 994addc414 Remove unused test class. 2010-08-12 21:55:30 +00:00
Antoine Pitrou 7c8bcb6f92 Issue #7467: when a file from a ZIP archive, its CRC is checked and a
BadZipfile error is raised if it doesn't match (as used to be the
case in Python 2.5 and earlier).
2010-08-12 15:11:50 +00:00
Tim Golden 3a879e8a27 #9055: remove assertion at the end of test_8959_b since the test is about crashing, not about counting and is difficult to manage when run as a service 2010-08-11 15:59:57 +00:00
Tim Golden 126c2960ca #2304: fix incorporating Eric Smith's .format suggestion and tested on Ubuntu as well as Windows 2010-08-11 14:20:40 +00:00
Antoine Pitrou 32cfedeb1c Issue #9550: a BufferedReader could issue an additional read when the
original read request had been satisfied, which can block indefinitely
when the underlying raw IO channel is e.g. a socket.  Report and original
patch by Jason V. Miller.
2010-08-11 13:31:33 +00:00
Mark Dickinson cf940c701f Issue #9530: Fix undefined-behaviour-inducing overflow checks in bytes and bytearray implementations. 2010-08-10 18:35:01 +00:00
Antoine Pitrou 817c9df7e5 test_winsound shouldn't crash when ctypes isn't available 2010-08-10 00:45:32 +00:00
Antoine Pitrou 5af4f4b983 Issue #3757: thread-local objects now support cyclic garbage collection.
Thread-local objects involved in reference cycles will be deallocated
timely by the cyclic GC, even if the underlying thread is still running.
2010-08-09 22:38:19 +00:00
Antoine Pitrou 6e451df800 Followup to r83869 and issue #8524: rename socket.forget() to socket.detach()
and make it return the file descriptor.
2010-08-09 20:39:54 +00:00
Senthil Kumaran 30e86a4767 Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Changes in Modules. 2010-08-09 20:01:35 +00:00