Commit graph

20872 commits

Author SHA1 Message Date
Brett Cannon
cb66eb0dec Issue #13959: Deprecate imp.get_suffixes() for new attributes on
importlib.machinery that provide the suffix details for import.
The attributes were not put on imp so as to compartmentalize
everything importlib needs for setting up imports in
importlib.machinery.

This also led to an indirect deprecation of inspect.getmoduleinfo() as
it directly returned imp.get_suffix's returned tuple which no longer
makes sense.
2012-05-11 12:58:42 -04:00
Brett Cannon
810c64df8f Issue #14764: Update importlib.test.benchmark to work in a world where
import machinery is no longer implicit.
2012-05-11 11:12:00 -04: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
Benjamin Peterson
569d087574 use yield from 2012-05-10 16:17:35 -05: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
Benjamin Peterson
869b1f9070 merge 3.2 2012-05-07 22:24:05 -04:00
Benjamin Peterson
3b66623a29 remove basically bitrotted XXXs 2012-05-07 22:23:48 -04:00
Benjamin Peterson
bbf83933c5 explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745) 2012-05-07 22:19:42 -04: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
Antoine Pitrou
6efa50a384 Issue #14583: Fix importlib bug when a package's __init__.py would first import one of its modules then raise an error. 2012-05-07 21:41:59 +02: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
Mark Dickinson
11c1dee183 Issue #14697: Fix missing parser module support for set displays and set comprehensions. 2012-05-07 16:34:34 +01:00
Mark Dickinson
cf360b9209 Issue #14701: Add missing support for 'raise ... from' in parser module. 2012-05-07 12:01:27 +01:00
Mark Dickinson
9fad160411 Issue #14701: Merge fix from 3.2. 2012-05-07 12:03:11 +01:00
Mark Dickinson
99e2e5552a Issue #14700: Fix two broken and undefined-behaviour-inducing overflow checks in old-style string formatting. Thanks Serhiy Storchaka for report and original patch. 2012-05-07 11:20:50 +01:00
Mark Dickinson
44ceea9326 Issue #14695: Run Tools/parser/test_unparse.py as part of test_tools. 2012-05-07 10:27:23 +01:00
Nadeem Vawda
bc459bb484 Rename lzma.check_is_supported() to is_check_supported() to avoid grammatical confusion. 2012-05-06 23:01:51 +02:00
Nadeem Vawda
f55b329edc Add lzma.{encode,decode}_filter_properties(). 2012-05-06 23:01:27 +02:00
Nadeem Vawda
11328e4437 Really fix test_gzip failures on Windows. 2012-05-06 19:24:18 +02:00
Richard Oudkerk
6dbca367dc Make test_multiprocessing more lenient about another timeout check 2012-05-06 16:46:36 +01:00
Richard Oudkerk
41eb85b194 Make AcquirerProxy.acquire() support timeout argument 2012-05-06 16:45:02 +01:00
Nadeem Vawda
9d9dc8eba0 Fix test_gzip failures on Windows. 2012-05-06 16:25:35 +02:00
Nadeem Vawda
1b8a14d3f0 Separate tests for gzip.GzipFile and gzip.open. 2012-05-06 15:17:52 +02:00
Nadeem Vawda
7e126205e6 Closes #13989: Add support for text modes to gzip.open().
Also, add tests for gzip.open().
2012-05-06 15:04:01 +02:00
Vinay Sajip
f1b34ee61b #12660: Skip test_gdb when run from an installed Python. 2012-05-06 12:03:05 +01:00
Vinay Sajip
73954040f6 Issue #9116: Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message. 2012-05-06 11:34:50 +01:00
Vinay Sajip
363712349a Closes #14729: Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message. 2012-05-06 11:28:46 +01:00
Georg Brandl
b4c8902a87 #13183: backport fixes to test_pdb to 3.2 branch 2012-05-06 11:50:00 +02:00
Larry Hastings
faf91e75ab Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support. 2012-05-05 16:54:29 -07:00
Richard Oudkerk
7ef909cdd7 Fix for issue 14725 for 3.2 branch 2012-05-05 20:41:23 +01:00
Richard Oudkerk
fdb8dcf675 Fix for Issue 14725 for 3.3 branch. 2012-05-05 19:45:37 +01:00
Lars Gustäbel
7a919e9930 Issue #13815: TarFile.extractfile() now returns io.BufferedReader objects.
The ExFileObject class was removed, some of its code went into _FileInFile.
2012-05-05 18:15:03 +02:00
Benjamin Peterson
ef5a4636d0 don't append the bytecode suffix to the source suffixes global 2012-05-05 09:44:08 -04:00
Brett Cannon
feccc09952 Clean up a docstring. 2012-05-04 16:47:54 -04:00
Brett Cannon
f19c191067 Jython-friendly tweak. 2012-05-04 15:46:04 -04:00
Brett Cannon
2657df4744 Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.
This introduces a new function, imp.extension_suffixes(), which is
currently undocumented. That is forthcoming once issue #14657 is
resolved and how to expose file suffixes is decided.
2012-05-04 15:20:40 -04:00
Brett Cannon
17098a5447 Properly mark names in importlib._bootstrap as private. 2012-05-04 13:52:49 -04:00
Antoine Pitrou
f340c21ca9 Fix test connecting to sha256.tbs-internet.com.
The certificate has changed and the test now needs SNI to pass.
2012-05-04 16:26:56 +02:00
Antoine Pitrou
16f6f8338b Fix test connecting to sha256.tbs-internet.com.
The certificate has changed and the test now needs SNI to pass.
2012-05-04 16:26:02 +02:00
Richard Oudkerk
009b15e2c3 Give test_multiprocessing better chance of avoiding timeout failures on Windows 2012-05-04 09:44:39 +01:00
Larry Hastings
b14544807e Issue #14127: Fix no-op stub for platforms that lack some "os" functions. 2012-05-03 12:56:44 -07:00