Victor Stinner
e08d4881f8
(Merge 3.3) test_faulthandler: use _sigsegv() instead of _read_null()
...
faulthandler._read_null() is not reliable: it does not crash on AIX.
2013-06-17 23:39:06 +02:00
Victor Stinner
5678539500
test_faulthandler: use _sigsegv() instead of _read_null()
...
faulthandler._read_null() is not reliable: it does not crash on AIX.
2013-06-17 23:37:59 +02:00
Victor Stinner
8f0aae54ba
(Merge 3.3) ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
2013-06-17 22:02:14 +02:00
Victor Stinner
43b2639fe2
ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
2013-06-17 22:01:53 +02:00
Victor Stinner
3f41c64ba0
(Merge 3.3) Issue #18238 : Skip test_signal.test_sigwaitinfo_interrupted() on AIX
...
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
2013-06-17 21:52:24 +02:00
Victor Stinner
91f9bdd773
Issue #18238 : Skip test_signal.test_sigwaitinfo_interrupted() on AIX
...
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
2013-06-17 21:51:56 +02:00
Victor Stinner
546ccf090e
Issue #18228 : Use locale.setlocale(name, None) instead of
...
locale.getlocale(name) in test.regrtest.saved_test_environment
locale.getlocale() parses the locale, which is useless for
saved_test_environment.
2013-06-17 21:28:14 +02:00
Victor Stinner
d9ccf7fe22
Issue #18228 : Fix locale test of test.regrtest.saved_test_environment
...
Skip LC_ALL becore getlocale(locale.LC_ALL) always fail, and catch also
ValueError.
2013-06-17 20:40:05 +02:00
Victor Stinner
a222de1a23
(Merge 3.3) regrtest.py: Fix another typo in the usage of the faulthandler module
2013-06-17 20:35:42 +02:00
Victor Stinner
934676afba
regrtest.py: Fix another typo in the usage of the faulthandler module
2013-06-17 20:35:08 +02:00
Victor Stinner
4a704d2341
(Merge 3.3) regrtest.py: Fix typo in the usage of the faulthandler module
2013-06-17 20:28:02 +02:00
Victor Stinner
4de701b728
regrtest.py: Fix typo in the usage of the faulthandler module
2013-06-17 20:27:10 +02:00
Christian Heimes
9ce4f36aa1
merge heads
2013-06-17 15:45:11 +02:00
Christian Heimes
9a5395ae2b
Issue #18147 : Add diagnostic functions to ssl.SSLContext().
...
get_ca_list() lists all loaded CA certificates and cert_store_stats() returns
amount of loaded X.509 certs, X.509 CA certs and CRLs.
2013-06-17 15:44:12 +02:00
Serhiy Storchaka
a5f004fe7d
Merge heads
2013-06-17 16:38:00 +03:00
Serhiy Storchaka
774bed7e60
Issue #18167 : cgi.FieldStorage no more fails to handle multipart/form-data
...
when \r\n appears at end of 65535 bytes without other newlines.
2013-06-17 16:36:20 +03:00
Serhiy Storchaka
c7bfe0e42e
Issue #18167 : cgi.FieldStorage no more fails to handle multipart/form-data
...
when \r\n appears at end of 65535 bytes without other newlines.
2013-06-17 16:34:41 +03:00
Christian Heimes
9424bb4aea
Issue #18207 : Fix test_ssl for some versions of OpenSSL that ignore seconds
...
in ASN1_TIME fields.
2013-06-17 15:32:57 +02:00
Serhiy Storchaka
78be6e8aa3
Issue #18223 : Refactor test_tarfile.
...
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
* Replace ImportError by ModuleNotFoundError.
and some other minor enhancements.
2013-06-17 16:11:06 +03:00
Serhiy Storchaka
8b56292079
Issue #18223 : Refactor test_tarfile.
...
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
and some other minor enhancements.
2013-06-17 15:38:50 +03:00
Brett Cannon
a81d527ca9
documentation suggesting something which doesn't exist
2013-06-16 19:17:12 -04:00
Brett Cannon
390f6c1bf7
Merge doc/argument name fix
2013-06-16 19:09:46 -04:00
Brett Cannon
a269d821a1
merge
2013-06-16 19:07:16 -04:00
Brett Cannon
1d75382e81
Fix a misnaming of a method and an argument
2013-06-16 19:06:55 -04:00
Brett Cannon
f24fecd4ac
Issue #18076 : Introduce imoportlib.util.decode_source().
...
The helper function makes it easier to implement
imoprtlib.abc.InspectLoader.get_source() by making that function
require just the raw bytes for source code and handling all other
details.
2013-06-16 18:37:53 -04:00
Brett Cannon
f4375ef4d4
importlib.abc.SourceLoader.get_source() was re-raising SyntaxError and
...
UnicodeDecodeError as ImportError. That was over-reaching the point of
raising ImportError in get_source() (which is to signal the source
code was not found when it should have). Conflating the two exceptions
with ImportError could lead to masking errors with the source which
should be known outside of whether there was an error simply getting
the source to begin with.
2013-06-16 18:05:54 -04:00
Brett Cannon
01b0475b08
Issue #18115 : Abstract out managing the cleanup of modules to use in
...
loaders where C code provides the loaded module.
2013-06-16 17:23:06 -04:00
Brett Cannon
6d26eba186
Check that warnings.showwarning() is not changed.
2013-06-16 15:20:48 -04:00
Brett Cannon
13d8ff9c5b
Issues #18058 , 18057: Make importlib._bootstrap.NamespaceLoader
...
conform the the InspectLoader ABC. Perk of this is that runpy/-m can
now work with namespace packages.
2013-06-16 14:56:58 -04:00
Brett Cannon
645ab68f25
merge
2013-06-16 13:14:06 -04:00
Brett Cannon
e4f41deccf
Issue #17177 : The imp module is pending deprecation.
...
To make sure there is no issue with code that is both Python 2 and 3
compatible, there are no plans to remove the module any sooner than
Python 4 (unless the community moves to Python 3 solidly before then).
2013-06-16 13:13:40 -04:00
Andrew Kuchling
f567727abc
Merge with 3.3
2013-06-16 13:02:55 -04:00
Andrew Kuchling
c7b6c50f29
Describe 'surrogateescape' in the documentation.
...
Also, improve some docstring descriptions of the 'errors' parameter.
Closes #14015 .
2013-06-16 12:58:48 -04:00
Brett Cannon
39295e7a55
Stop using the deprecated unittest.TestCase.assertRaisesRegexp()
2013-06-16 11:37:57 -04:00
Brett Cannon
2f9f056db1
Make test_builtin work when executed directly
2013-06-15 23:24:11 -04:00
Gregory P. Smith
22ba31a3af
Prevent a possible double close of parent pipe fds when the subprocess
...
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
2013-06-15 18:14:56 -07:00
Gregory P. Smith
893f2ffc7c
news entry for subprocess double close fix.
2013-06-15 18:05:17 -07:00
Gregory P. Smith
b5461b9884
Prevent a possible double close of parent pipe fds when the subprocess
...
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
2013-06-15 18:04:26 -07:00
Brett Cannon
ef888024d8
Issue #17177 : stop using imp in test_importlib
2013-06-15 18:39:21 -04:00
Brett Cannon
53e600c24a
Issue #17177 : update checkpyc to stop using imp
2013-06-15 18:10:18 -04:00
Brett Cannon
ca5ff3a069
Issue # 17177: Stop using imp in setup.py
2013-06-15 17:52:59 -04:00
Brett Cannon
e7e1deef17
Issue # 17177: Stop using imp in turtledemo
2013-06-15 17:33:27 -04:00
Brett Cannon
b57a085c74
Issue #17177 : Stop using imp in zipfile
2013-06-15 17:32:30 -04:00
Brett Cannon
9529fbfd36
Issue #17177 : Stop using imp in a bunch of tests
2013-06-15 17:11:25 -04:00
Andrew Kuchling
8a2a902f88
Merge with 3.3
2013-06-15 15:10:08 -04:00
Brett Cannon
f15a59fdf3
Issue #17177 : Stop using imp in sysconfig
2013-06-15 14:32:11 -04:00
Brett Cannon
82d2107668
Issue #17177 : switch from imp.new_module to types.ModuleType for runpy
2013-06-15 14:27:21 -04:00
Brett Cannon
f4ba4ec160
Issue #17177 : Stop using imp in pydoc
2013-06-15 14:25:04 -04:00
Brett Cannon
df960682a5
Issue #17177 : Stop using imp with py_compile
2013-06-15 14:07:21 -04:00
Andrew Kuchling
53e5ea7951
#18113 : Objects associated to a curses.panel object with set_userptr() were leaked.
...
Reported by Atsuo Ishimoto.
2013-06-15 14:04:04 -04:00