Andrew Kuchling
19ddaf6d40
Merge from 3.4
2015-04-14 10:35:43 -04:00
Berker Peksag
dfa4e045a3
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:35:51 +03:00
Berker Peksag
4882cacab6
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:30:01 +03:00
R David Murray
0a8f43e85a
#11754 : test contents of string module attributes.
...
As noted in the comment, while the order of the items in the attributes is not
technically guaranteed, after all this time there is almost certainly user
code out there that relies on it, so we might as well test for it.
Patch by Chalmer Lowe.
2015-04-13 20:04:29 -04:00
Zachary Ware
8ef887ce47
Issue #20586 : Argument Clinic now ensures signatures on functions without docstrings.
2015-04-13 18:22:35 -05:00
Brett Cannon
9d2a01fb2b
Issue #23822 : Fix test_py_compile to not fail under -O.
2015-04-13 16:28:11 -04:00
Zachary Ware
38c707e7e0
Issue #21741 : Update 147 test modules to use test discovery.
...
I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux. The only differences I found were actually tests
that were previously *not* run.
2015-04-13 15:00:43 -05:00
Brett Cannon
f299abdafa
Issue #23731 : Implement PEP 488.
...
The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
2015-04-13 14:21:02 -04:00
Antoine Pitrou
a63cc21234
Issue #23726 : Don't enable GC for user subclasses of non-GC types that don't add any new fields.
...
Patch by Eugene Toder.
2015-04-13 20:10:06 +02:00
Antoine Pitrou
56452eea39
Issue #22982 : Improve BOM handling when seeking to multiple positions of a writable text file.
2015-04-13 20:02:33 +02:00
Antoine Pitrou
85e3ee749c
Issue #22982 : Improve BOM handling when seeking to multiple positions of a writable text file.
2015-04-13 20:01:21 +02:00
Antoine Pitrou
cb46f0ecb0
Issue #23309 : Avoid a deadlock at shutdown if a daemon thread is aborted
...
while it is holding a lock to a buffered I/O object, and the main thread
tries to use the same I/O object (typically stdout or stderr). A fatal
error is emitted instead.
2015-04-13 19:48:19 +02:00
Antoine Pitrou
25f85d4bd5
Issue #23309 : Avoid a deadlock at shutdown if a daemon thread is aborted
...
while it is holding a lock to a buffered I/O object, and the main thread
tries to use the same I/O object (typically stdout or stderr). A fatal
error is emitted instead.
2015-04-13 19:41:47 +02:00
Nick Coghlan
9c680b0728
Actually run the builtins Argument Clinic test
2015-04-13 12:54:54 -04:00
Andrew Kuchling
8b963c5853
#17898 : reset k and v so that the loop doesn't use an old value
2015-04-13 10:38:56 -04:00
Ethan Furman
48a724fa33
Close issue23900: add default __doc__ to new enumerations that do not specify one.
2015-04-11 23:23:06 -07:00
Guido van Rossum
e173c07502
Unittest for Issue 21511 by Christie Wilson bobcatfish@gmail.com.
2015-04-11 17:44:01 -04:00
Berker Peksag
ecb75e26db
Issue #23062 : Add a test for suppressing --version with argparse.SUPPRESS.
...
TestHelpVersionOptional was redundant.
2015-04-10 16:11:12 +03:00
doko@ubuntu.com
f172caeb8b
- fix file permission for Lib/test/test_script_helper.py
2015-04-12 02:03:50 +02:00
Guido van Rossum
0ac8aa7ff3
Unittest for Issue 21511 by Christie Wilson bobcatfish@gmail.com (merge from 3.4).
2015-04-11 17:45:56 -04:00
Ethan Furman
3323da92e7
Issue23826: fix doc test for -OO runs
2015-04-11 09:39:59 -07:00
Antoine Pitrou
2dbc6e6bce
Issue #23529 : Limit the size of decompressed data when reading from
...
GzipFile, BZ2File or LZMAFile. This defeats denial of service attacks
using compressed bombs (i.e. compressed payloads which decompress to a huge
size).
Patch by Martin Panter and Nikolaus Rath.
2015-04-11 00:31:01 +02:00
Serhiy Storchaka
056eb967ee
Merge heads
2015-04-10 16:18:58 +03:00
Serhiy Storchaka
71fd224af0
Issue #21859 : Added Python implementation of io.FileIO.
2015-04-10 16:16:16 +03:00
Berker Peksag
82c920c59e
Issue #23062 : Add a test for suppressing --version with argparse.SUPPRESS.
...
TestHelpVersionOptional was redundant.
2015-04-10 16:11:45 +03:00
Serhiy Storchaka
1c5e281df8
Use assertRaisesRegex instead of deprecated assertRaisesRegexp.
2015-04-10 12:54:19 +03:00
Serhiy Storchaka
93da9b5e57
Use assertRaisesRegex instead of deprecated assertRaisesRegexp.
2015-04-10 12:52:09 +03:00
Berker Peksag
52c0c3382d
Skip nntplib tests when transient errors captured.
2015-04-08 11:24:27 +03:00
Victor Stinner
4bea461572
Issue #23881 : ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/
...
are down, don't use anymore in test_urllib2net
2015-04-07 12:52:50 +02:00
Serhiy Storchaka
6fbeae406e
Issue #22977 : Remove unconditional import of ctypes.
2015-04-06 20:37:16 +03:00
Berker Peksag
b8e973f937
Issue #23027 : test_warnings now passes all tests when run it with -Werror.
2015-04-08 17:38:39 +03:00
Berker Peksag
d09620839c
Skip nntplib tests when transient errors captured.
2015-04-08 11:24:51 +03:00
Berker Peksag
716b3d3e91
Issue #23883 : Add missing entries to traceback.__all__.
2015-04-08 09:47:14 +03:00
Gregory P. Smith
cb6fdf2c63
issue10838: Rename the subprocess.mswindows internal global to _mswindows.
...
It is internal only, not a documented API.
2015-04-07 16:11:33 -07:00
Gregory P. Smith
ace55865c5
Addresses Issue #10838 : The subprocess now module includes
...
SubprocessError and TimeoutError in its list of exported names for the
users wild enough to use "from subprocess import *".
MAXFD, mswindows and list2cmdline should be dealt with (renamed or
moved) in separate commits.
Committed at 35,000ft. Thanks chromebook free gogo wifi passes!
2015-04-07 15:57:54 -07:00
Serhiy Storchaka
1515450440
Issue #23411 : Added DefragResult, ParseResult, SplitResult, DefragResultBytes,
...
ParseResultBytes, and SplitResultBytes to urllib.parse.__all__.
Patch by Martin Panter.
2015-04-07 19:09:01 +03:00
Victor Stinner
388bf30fe8
Merge 3.4 (test_urllib2net)
2015-04-07 12:53:07 +02:00
Serhiy Storchaka
62aa7dc7c9
Issue #22721 : An order of multiline pprint output of set or dict containing
...
orderable and non-orderable elements no longer depends on iteration order of
set or dict.
2015-04-06 22:52:44 +03:00
Serhiy Storchaka
01362da7d0
Issue #22977 : Remove unconditional import of ctypes.
2015-04-06 20:37:34 +03:00
R David Murray
cae7bdb424
#3566 : Clean up handling of remote server disconnects.
...
This changeset does two things: introduces a new RemoteDisconnected exception
(that subclasses ConnectionResetError and BadStatusLine) so that a remote
server disconnection can be detected by client code (and provides a better
error message for debugging purposes), and ensures that the client socket is
closed if a ConnectionError happens, so that the automatic re-connection code
can work if the application handles the error and continues on.
Tests are added that confirm that a connection is re-used or not re-used
as appropriate to the various combinations of protocol version and headers.
Patch by Martin Panter, reviewed by Demian Brecht. (Tweaked only slightly by
me.)
2015-04-05 19:26:29 -04:00
Serhiy Storchaka
de1c27feaa
Issue #23466 : Fixed expected error message in test_format.
2015-04-04 17:29:28 +03:00
Serhiy Storchaka
b599ca8cff
Fixed test_enum for issue #15582 .
2015-04-04 12:48:04 +03:00
Serhiy Storchaka
06e66108c6
Issue #15133 : _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
...
returns bool. tkinter.BooleanVar now validates input values (accepted bool,
int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
2015-04-04 12:44:30 +03:00
Serhiy Storchaka
9a6e201f7d
Issue #15133 : _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
...
returns bool. tkinter.BooleanVar now validates input values (accepted bool,
int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
2015-04-04 12:43:01 +03:00
Serhiy Storchaka
ae2d667ae8
Open files in binary mode to avoid newlines transformation.
2015-04-04 10:36:50 +03:00
Serhiy Storchaka
c9ba38c21c
Open files in binary mode to avoid newlines transformation.
2015-04-04 10:36:25 +03:00
Serhiy Storchaka
778db289b5
Issue #10590 : xml.sax.parseString() now supports string argument.
2015-04-04 10:12:26 +03:00
Serhiy Storchaka
5cf2b7253d
Issue #15582 : inspect.getdoc() now follows inheritance chains.
2015-04-03 22:38:53 +03:00
Serhiy Storchaka
41525e31a5
Issue #23466 : Raised OverflowError if %c argument is out of range.
2015-04-03 20:53:46 +03:00
Serhiy Storchaka
50ef0f41af
Escaped backslashes in docstrings.
2015-04-03 18:13:23 +03:00