Commit graph

10351 commits

Author SHA1 Message Date
Antoine Pitrou
314a16b0ec Make the test completely clean up after itself. 2012-05-17 21:02:54 +02:00
Antoine Pitrou
ea3eb88bca Issue #9260: A finer-grained import lock.
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
2012-05-17 18:55:59 +02:00
Antoine Pitrou
de9ac6c2e5 Issue #14780: urllib.request.urlopen() now has a cadefault argument to use the default certificate store.
Initial patch by James Oakley.
2012-05-16 21:40:01 +02:00
Stefan Krah
5d953184a6 Issue #14779: Get sizeof(void *) directly rather than relying on sysconfig. 2012-05-16 20:41:56 +02:00
Antoine Pitrou
019ff19c39 Issue #14693: Under non-Windows platforms, hashlib's fallback modules are always compiled, even if OpenSSL is present at build time. 2012-05-16 16:41:26 +02:00
Giampaolo Rodola'
26fd8feb5e merge heads 2012-05-16 16:03:07 +02:00
Giampaolo Rodola'
e126678216 #14807: fix BB failures on Windows - avoid to to rely too many details of the mode string. 2012-05-16 16:01:59 +02:00
Antoine Pitrou
7ca29507f6 Forward port additional tests from 2.7 (issue #14829). 2012-05-16 15:06:00 +02:00
Antoine Pitrou
fb5b954ee0 Forward port additional tests from 2.7 (issue #14829). 2012-05-16 15:01:40 +02:00
Eric V. Smith
5cdc6308b6 Cleanup so subsequent tests won't fail. Needs to be moved into a support routine (see 14715). 2012-05-16 04:48:04 -04:00
Eric V. Smith
313fbe2106 Merge from 3.2. 2012-05-16 04:49:22 -04:00
Eric V. Smith
c8e106babb Merge from 3.2. 2012-05-15 20:46:06 -04:00
Eric V. Smith
a790c9b6d6 Issue #14817: Add rudimentary tests for pkgutil.extend_path. 2012-05-15 20:44:06 -04:00
Giampaolo Rodola'
12ea86adce merge heads 2012-05-15 22:21:01 +02:00
Giampaolo Rodola'
b28df76ee2 #14807: fix bb failure due to symlink test relying on hard-coded permissions 2012-05-15 22:20:10 +02:00
Hynek Schlawack
39bf90d319 Add two more sorts to test_os.WalkTests I've missed before 2012-05-15 18:40:17 +02:00
Senthil Kumaran
c5f31ed63d merge heads 2012-05-16 00:07:24 +08:00
Senthil Kumaran
92a5bf0c0a Issue12541 - Add UserWarning for unquoted realms 2012-05-16 00:03:29 +08:00
Senthil Kumaran
0ea91cb5c6 Issue12541 - Add UserWarning for unquoted realms 2012-05-15 23:59:42 +08:00
Hynek Schlawack
c96f5a0457 Sort file list in test_os.WalkTests
Adding new files into the tree lead to buildbot fails as the order wasn't
deterministic.
2012-05-15 17:55:38 +02:00
Senthil Kumaran
acfc26acb0 merge heads 2012-05-15 22:42:11 +08:00
Senthil Kumaran
b26fe2f313 merge from 3.2 - Issue #12541: Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2. 2012-05-15 22:39:17 +08:00
Hynek Schlawack
66bfcc1b0f #14773: Fix os.fwalk() failing on dangling symlinks 2012-05-15 16:32:21 +02:00
Senthil Kumaran
34f3fcc269 Issue #12541: Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
G: changed Misc/NEWS
2012-05-15 22:30:25 +08:00
Giampaolo Rodola'
ffa1d0b8d5 #14807: move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning. 2012-05-15 15:30:25 +02:00
Benjamin Peterson
d5a1c44455 PEP 415: Implement suppression of __context__ display with an exception attribute
This replaces the original PEP 409 implementation. See #14133.
2012-05-14 22:09:31 -07:00
Antoine Pitrou
e2eab5e768 Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.
2012-05-14 19:45:27 +02:00
Antoine Pitrou
072e4a3fc7 Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.
2012-05-14 19:44:59 +02:00
Antoine Pitrou
9a2349030a Issue #14417: Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes issue #14205). 2012-05-13 20:48:01 +02:00
Charles-François Natali
7feb9f4225 Issue #14532: Add a secure_compare() helper to the hmac module, to mitigate
timing attacks. Patch by Jon Oberheide.
2012-05-13 19:53:07 +02:00
Martin v. Löwis
7fb79fcb64 Issue #14366: Support lzma compression in zip files.
Patch by Serhiy Storchaka.
2012-05-13 10:06:36 +02:00
Brett Cannon
acc0c181a8 Remove a now worthless test. 2012-05-12 17:40:28 -04:00
Antoine Pitrou
61597d3e92 Try to fix test_shutil failure under Fedora - patch by Hynek. 2012-05-12 23:37:35 +02:00
Stefan Krah
094d0e002c Issue #14779: Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit
universal: it returns a meaningless result. Use sys.maxsize instead of
platform.architecture as a fallback. Patch by Ned Deily.
2012-05-12 23:11:51 +02:00
Antoine Pitrou
424246fbf3 Issue #14082: shutil.copy2() now copies extended attributes, if possible.
Patch by Hynek Schlawack.
2012-05-12 19:02:01 +02:00
Brett Cannon
c049952de7 Issue #13959: Have
importlib.abc.FileLoader.load_module()/get_filename() and
importlib.machinery.ExtensionFileLoader.load_module() have their
single argument be optional as the loader's constructor has all the
ncessary information.

This allows for the deprecation of
imp.load_source()/load_compile()/load_package().
2012-05-11 14:48:41 -04:00
Ned Deily
5fddf866d8 Issue #14662: Prevent shutil failures on OS X when destination does not
support chflag operations.  (Patch by Hynek Schlawack)
2012-05-10 17:21:23 -07:00
Ned Deily
baf75713c7 Issue #14662: Prevent shutil failures on OS X when destination does not
support chflag operations.  (Patch by Hynek Schlawack)
2012-05-10 17:05:19 -07:00
Antoine Pitrou
e8751e05d9 Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.
2012-05-10 20:18:46 +02:00
Antoine Pitrou
1682e5d740 Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.
2012-05-10 20:17:46 +02:00
Richard Oudkerk
59d5404bc7 Issue #14753: Make multiprocessing treat negative timeouts as it did in 3.2
In Python 3.2 and earlier, Process.join() and Connection.poll()
treated negative timeouts as zero timeouts.  Earlier versions from
the 3.3 line of development treat them as infinite timeouts.

The patch reverts to the old behaviour.
2012-05-10 16:11:12 +01:00
Jesus Cea
b58ab2c6aa MERGE: Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/' 2012-05-10 05:16:41 +02:00
Jesus Cea
7f0d88860f Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/' 2012-05-10 05:10:50 +02:00
Victor Stinner
f59c28c930 unicode_writer_finish() checks string consistency 2012-05-09 03:24:14 +02:00
Richard Oudkerk
5d73c178a8 Issue #14727: Fix race in test_multiprocessing 2012-05-08 22:24:47 +01:00
Richard Oudkerk
104b3f4bf7 Minor fix for test_multiprocessing 2012-05-08 16:08:07 +01:00
Mark Dickinson
79575b210f Issue #14742: Don't include DirectoryTestCase from test_unparse in test_tools until we can speed it up. 2012-05-07 22:36:43 +01:00
Mark Dickinson
943cab2fec Issue #14741: Merge fix from 3.2. 2012-05-07 17:25:14 +01:00
Mark Dickinson
da029fb293 Issue #14741: Fix missing support for ellipsis in parser module. 2012-05-07 17:24:04 +01:00
Mark Dickinson
72f6095d4f Issue #14697: Merge fix from 3.2. 2012-05-07 16:36:33 +01:00