Commit Graph

17804 Commits

Author SHA1 Message Date
Guido van Rossum 94097b02c2 Relax timing even more, hopefully again fixes issue 19579. 2013-11-23 09:20:12 -08:00
Serhiy Storchaka 434d27a490 Merge heads 2013-11-23 19:08:38 +02:00
Victor Stinner 0da64f7ffb Isue #19634: test_y_before_1900() is expected to fail on Solaris 2013-11-23 17:58:26 +01:00
Serhiy Storchaka be0c3250b1 Issue #19668: Added support for the cp1125 encoding. 2013-11-23 18:52:23 +02:00
Antoine Pitrou e50240c504 Issue #19308: fix the gdb plugin on gdbs linked with Python 3 2013-11-23 17:40:36 +01:00
Christian Heimes 5de397e158 merge 2013-11-23 15:59:07 +01:00
Christian Heimes 4c05b472dd Issue #19689: Add ssl.create_default_context() factory function. It creates
a new SSLContext object with secure default settings.
2013-11-23 15:58:30 +01:00
Antoine Pitrou 2cf3917954 Issue #19715: try the utime(..., None) approach again, now that it should be more precise under Windows 2013-11-23 15:25:59 +01:00
Serhiy Storchaka 235c5e0dd6 Issue #17201: ZIP64 extensions now are enabled by default.
Patch by William Mallard.
2013-11-23 15:55:38 +02:00
Antoine Pitrou 8b78493d4f Issue #19716: add a test that Path.touch() doesn't change a file's contents.
Patch by Kushal Das.
2013-11-23 14:52:39 +01:00
Christian Heimes 72d28500b3 Issue #19292: Add SSLContext.load_default_certs() to load default root CA
certificates from default stores or system stores. By default the method
loads CA certs for authentication of server certs.
2013-11-23 13:56:58 +01:00
Victor Stinner 3728d6ced0 Issue #18874: Remove tracemalloc.set_traceback_limit()
tracemalloc.start() now has an option nframe parameter
2013-11-23 12:37:20 +01:00
Victor Stinner ed3b0bca3e Issue #18874: Implement the PEP 454 (tracemalloc) 2013-11-23 12:27:24 +01:00
Christian Heimes 2427b50fdd Issue #8813: X509_VERIFY_PARAM is only available on OpenSSL 0.9.8+
The patch removes the verify_flags feature on Mac OS X 10.4 with OpenSSL 0.9.7l 28 Sep 2006.
2013-11-23 11:24:32 +01:00
Nick Coghlan d76cdc161e Close #19694: venv now runs ensurepip in isolated mode 2013-11-23 11:37:28 +10:00
Nick Coghlan 9c1aed8f94 Close #7475: Restore binary & text transform codecs
The codecs themselves were restored in Python 3.2, this
completes the restoration by adding back the convenience
aliases.

These aliases were originally left out due to confusing
errors when attempting to use them with the text encoding
specific convenience methods. Python 3.4 includes several
improvements to those errors, thus permitting the aliases
to be restored as well.
2013-11-23 11:13:36 +10:00
Antoine Pitrou 12820c0d5d Revert utime(..., None) strategy (it has too poor resolution under Windows) and restore the previous test workaround
(issue #19715)
2013-11-23 02:11:02 +01:00
Antoine Pitrou c3055be5f3 Trying other strategy for #19715: use utime(..., None) 2013-11-23 01:54:27 +01:00
Antoine Pitrou bb6694de85 Try to fix issue #19715 (timestamp rounding inconsistencies under Windows?) 2013-11-23 01:32:53 +01:00
Victor Stinner 6c86181cd1 Issue #19715: Ensure that consecutive calls to monotonic() are monotonic 2013-11-23 00:15:27 +01:00
Antoine Pitrou 0f57564cac Try to debug issue #19715 2013-11-22 23:20:08 +01:00
Antoine Pitrou 2dd38fb238 Issue #19718: add one more globbing test under POSIX 2013-11-22 22:26:01 +01:00
Brett Cannon 02ac74eecc merge 2013-11-22 16:14:24 -05:00
Brett Cannon fe77f4ebb5 Issue #19718: Add a case-insensitive FS check to test.support to use
in test_pathlib.

Purposefully designed to work from a specified directory in case
multiple file systems are used on the system.
2013-11-22 16:14:10 -05:00
Eric Snow 2ba66ebc20 Issue #19724: clear out colliding temp module. 2013-11-22 13:55:23 -07:00
Guido van Rossum 7a465647e4 asyncio: Pass cancellation from wrapping Future to wrapped Future. By Saúl Ibarra Corretgé (mostly). 2013-11-22 11:47:22 -08:00
Brett Cannon 873d1226b7 Make test_importlib output easier to trace back to the failing test
class.
2013-11-22 14:47:09 -05:00
Brett Cannon e0c3bd78c5 Issue #18864: Don't try and use unittest as a testing module for
built-in loading; leads to a reload scenario where attributes get set
which are wrong after the test.
2013-11-22 14:38:09 -05:00
Brett Cannon a24348cec1 Make some tests more verbose in the face of failure 2013-11-22 13:22:22 -05:00
Antoine Pitrou 330ce596c2 Hopefully fix test_is_socket_true 2013-11-22 18:05:06 +01:00
Antoine Pitrou 29eac42f49 Fix test failure under systems with an incompatible locale 2013-11-22 17:57:03 +01:00
Antoine Pitrou 31119e4f10 Issue #19673: Add pathlib to the stdlib as a provisional module (PEP 428). 2013-11-22 17:38:12 +01:00
Eric Snow b523f8433a Implement PEP 451 (ModuleSpec). 2013-11-22 09:05:39 -07:00
Christian Heimes 5398e1a56e Issue #19448: report name / NID in exception message of ASN1Object 2013-11-22 16:20:53 +01:00
Christian Heimes c2d65e1e93 Issue #17134: check certs of CA and ROOT system store 2013-11-22 16:13:55 +01:00
Nick Coghlan 50c48b89e3 Close #17916: dis.Bytecode based replacement for distb
- Bytecode.from_traceback() alternate constructor
- current_offset parameter and attribute

Patch by Claudiu Popa
2013-11-23 00:57:00 +10:00
Nick Coghlan 8fbdb097cf Close #19552: venv and pyvenv ensurepip integration 2013-11-23 00:30:34 +10:00
Nick Coghlan c72e4e6dcc Issue #19619: Blacklist non-text codecs in method API
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.

The latter mechanism remains in place for third party non-text
encodings.
2013-11-22 22:39:36 +10:00
Ezio Melotti f6de9eb2bb #19688: add back and deprecate the internal HTMLParser.unescape() method. 2013-11-22 05:49:29 +02:00
Christian Heimes 32f0c7a67b or VERIFY_CRL_CHECK_LEAF to verify_flags 2013-11-22 03:43:48 +01:00
Christian Heimes d5b200ce2b Issue #19664: fix another flake test_userdict test 2013-11-22 03:36:28 +01:00
Christian Heimes 44109d7de7 Issue #17134: Finalize interface to Windows' certificate store. Cert and
CRL enumeration are now two functions. enum_certificates() also returns
purpose flags as set of OIDs.
2013-11-22 01:51:30 +01:00
Christian Heimes d062892542 Issue #19681: Apply a quick and minimal band-aid.
The flaky buildbots make it hard to detect real issue. This is just a temporary fix until we agree
on a permanent solution.
2013-11-22 01:22:47 +01:00
Christian Heimes 35915876a6 merge 2013-11-22 01:17:34 +01:00
Christian Heimes 5f8b0f5c59 Issue #19664: test_userdict's repr test no longer depends on the order
of dict elements.
Original patch by Serhiy Storchaka
2013-11-22 01:16:56 +01:00
Barry Warsaw 99fc416b23 trunk merge 2013-11-21 18:57:41 -05:00
Barry Warsaw 197a770231 - Issue #19555: Restore sysconfig.get_config_var('SO'), with a
DeprecationWarning pointing people at $EXT_SUFFIX.
2013-11-21 18:57:14 -05:00
Christian Heimes d6dc952e17 one CERT_REQUIRED is enough 2013-11-22 00:39:38 +01:00
Christian Heimes 225877917e Issue #8813: Add SSLContext.verify_flags to change the verification flags
of the context in order to enable certification revocation list (CRL)
checks or strict X509 rules.
2013-11-21 23:56:13 +01:00
Guido van Rossum 8820c239f7 Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye. 2013-11-21 11:30:06 -08:00