Antoine Pitrou
a8723a02ea
Issue #21217 : inspect.getsourcelines() now tries to compute the start and
...
end lines from the code object, fixing an issue when a lambda function is
used as decorator argument. Patch by Thomas Ballinger.
2015-04-15 00:41:29 +02:00
R David Murray
687592def9
Merge: #23925 : stop (eg) PYTHONSTARTUP from causing test_cmd_line failure.
2015-04-14 17:58:40 -04:00
R David Murray
f4bbc535b9
#23925 : stop (eg) PYTHONSTARTUP from causing test_cmd_line failure.
...
Patch by Jamiel Almeida.
2015-04-14 17:57:41 -04:00
Gregory P. Smith
14a88abfcc
issue9859: Use an expected failure rather than a skip.
2015-04-14 13:54:09 -07:00
Gregory P. Smith
4e72cceb62
issue9859: Document test.support.detect_api_mismatch() and simplify its test.
2015-04-14 13:26:06 -07:00
Gregory P. Smith
1bef9075b8
issue9859: rename CPyMatchTest to APIMismatchTest and add @support.cpython_only.
2015-04-14 13:24:34 -07:00
Gregory P. Smith
054b065f6c
issue9859: Adds a CPyMatchTest test case to compare the exposed APIs
...
of the Python io module and the C io module. They do not currently
match so the failing test is marked with @unittest.skip.
2015-04-14 12:58:05 -07:00
Gregory P. Smith
e334e3ff71
issue9859: Adds a test.support.detect_api_mismatch function useful to
...
compare the public APIs of two modules or classes.
2015-04-14 12:56:53 -07:00
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
Serhiy Storchaka
9f8a8910a4
Escaped backslashes in docstrings.
2015-04-03 18:12:41 +03:00
Serhiy Storchaka
4deb950e2b
Issue #22351 . MockSslTests tests in test_nntplib now are reported if skipped.
2015-04-03 15:02:40 +03:00
Serhiy Storchaka
807743403d
Issue #22351 . MockSslTests tests in test_nntplib now are reported if skipped.
2015-04-03 15:02:20 +03:00
Victor Stinner
8c9bba07d4
Issue #22351 : Fix test_nntplib if the ssl module is missing
...
@unittest.skipUnless(ssl, '...') doesn't work because the class body uses the
nntplib.NNTP_SSL attribute which doesn't exist.
2015-04-03 11:06:40 +02:00
Serhiy Storchaka
13e41c516a
Issue #10590 : Added tests for xml.sax.parse() and xml.sax.parseString().
2015-04-02 23:05:57 +03:00
Victor Stinner
13019fdef3
Issue #22117 : Add a new _PyTime_FromSeconds() function
...
Fix also _Py_InitializeEx_Private(): initialize time before initializing
import, import_init() uses the _PyTime API (for thread locks).
2015-04-03 13:10:54 +02:00
Victor Stinner
21dfffa218
Merge 3.4 (test_nntplib)
2015-04-03 11:09:08 +02:00
Serhiy Storchaka
f1468eb44c
Issue #10590 : Added tests for xml.sax.parse() and xml.sax.parseString().
2015-04-02 23:07:19 +03:00
Serhiy Storchaka
61de087f0f
Issue #2175 : SAX parsers now support a character stream of InputSource object.
2015-04-02 21:00:13 +03:00
Serhiy Storchaka
278ba2690c
Issue #2175 : Added tests for xml.sax.saxutils.prepare_input_source().
...
Made test XML files non-ASCII.
2015-04-02 20:57:20 +03:00
Serhiy Storchaka
aa9563c1b8
Issue #2175 : Added tests for xml.sax.saxutils.prepare_input_source().
...
Made test XML files non-ASCII.
2015-04-02 20:55:59 +03:00
Serhiy Storchaka
b162914158
Issue #16840 : Fixed test_tcl for Tcl < 8.5.
2015-04-02 20:07:24 +03:00
Serhiy Storchaka
2379d541dd
Issue #16840 : Fixed test_tcl for Tcl < 8.5.
2015-04-02 20:07:09 +03:00
Serhiy Storchaka
9fe562b499
Issue #21526 : Skip test_booleans on Tcl < 8.5.
2015-04-02 19:59:34 +03:00
Serhiy Storchaka
a5a4bd76fb
Issue #21526 : Skip test_booleans on Tcl < 8.5.
2015-04-02 19:57:52 +03:00
Serhiy Storchaka
4c7dc48ea5
Issue #16840 : Tkinter now supports 64-bit integers added in Tcl 8.4 and
...
arbitrary precision integers added in Tcl 8.5.
2015-04-02 18:49:14 +03:00
Serhiy Storchaka
ea134da929
Issue #16840 : Tkinter now supports 64-bit integers added in Tcl 8.4 and
...
arbitrary precision integers added in Tcl 8.5.
2015-04-02 18:46:50 +03:00
Victor Stinner
39c0721d7b
Merge 3.4 (test_exceptions)
2015-04-02 14:22:44 +02:00
Victor Stinner
d223fa631d
Issue #22977 : Fix test_exceptions
2015-04-02 14:17:38 +02:00
Serhiy Storchaka
b7616621db
Issue #21526 : Fixed the test_booleans test for wantobjects = 0.
2015-04-02 11:47:51 +03:00
Serhiy Storchaka
9171fe5a1d
Issue #21526 : Fixed the test_booleans test for wantobjects = 0.
2015-04-02 11:46:07 +03:00
Serhiy Storchaka
b452f41cc8
Issue #21526 : Fixed support of new boolean type in Tcl 8.5.
2015-04-02 10:58:40 +03:00
Serhiy Storchaka
f7de3dd02d
Issue #21526 : Tkinter now supports new boolean type in Tcl 8.5.
2015-04-02 10:35:57 +03:00
Serhiy Storchaka
1399a01b90
Issue #22977 : Fixed formatting Windows error messages on Wine.
...
Patch by Martin Panter.
2015-04-02 09:50:06 +03:00
Serhiy Storchaka
f41f8f9974
Issue #22977 : Fixed formatting Windows error messages on Wine.
...
Patch by Martin Panter.
2015-04-02 09:47:27 +03:00
Benjamin Peterson
4b9df0d33b
merge 3.4 ( #23844 )
2015-04-02 00:08:10 -04:00
Benjamin Peterson
a7eaf56a6d
replace 512 bit dh key with a 2014 bit one ( closes #23844 )
...
Patch by Cédric Krier.
2015-04-02 00:04:06 -04:00
Victor Stinner
62d1c70eff
Issue #22117 , issue #23485 : Fix _PyTime_AsMilliseconds() and
...
_PyTime_AsMicroseconds() rounding.
Add also unit tests.
2015-04-01 17:47:07 +02:00
Raymond Hettinger
067bbba7a4
Check deques against common sequence tests (except for slicing).
2015-04-01 08:11:09 -07:00
Serhiy Storchaka
c19c3960bb
Issue #23821 : Fixed test_pdb failure under -O.
2015-04-01 16:58:39 +03:00
Serhiy Storchaka
a16de5dbf5
Issue #23821 : Fixed test_pdb failure under -O.
2015-04-01 16:58:19 +03:00
Serhiy Storchaka
05ddbf0875
Issue #23838 : linecache now clears the cache and returns an empty result on
...
MemoryError.
2015-04-01 16:56:13 +03:00
Serhiy Storchaka
c512adc90d
Issue #23838 : linecache now clears the cache and returns an empty result on
...
MemoryError.
2015-04-01 16:54:05 +03:00
Serhiy Storchaka
c05e260ecb
Issue #23799 : Added test.support.start_threads() for running and cleaning up
...
multiple threads.
2015-04-01 13:06:18 +03:00
Serhiy Storchaka
263dcd20a3
Issue #23799 : Added test.support.start_threads() for running and cleaning up
...
multiple threads.
2015-04-01 13:01:14 +03:00
Raymond Hettinger
41290a68ba
Issue 23793: Add deque support for __add__(), __mul__(), and __imul__().
2015-03-31 08:12:23 -07:00
Serhiy Storchaka
e50e780234
Issue #23611 : Fixed enums pickling tests. Now all picklings work with all
...
protocols.
2015-03-31 16:56:49 +03:00
Serhiy Storchaka
5236e318a5
Issue #18473 : Fixed pickle compatibility tests for optional modules.
...
Added WindowsError to compatibility mappings.
2015-03-31 16:49:48 +03:00
Serhiy Storchaka
b9100e5d9d
Issue #18473 : Fixed pickle compatibility tests for optional modules.
...
Added WindowsError to compatibility mappings.
2015-03-31 16:49:26 +03:00
Serhiy Storchaka
3822093143
Issue #10395 : Added os.path.commonpath(). Implemented in posixpath and ntpath.
...
Based on patch by Rafik Draoui.
2015-03-31 15:31:53 +03:00
Serhiy Storchaka
58e4134a1c
Issue #23611 : Serializing more "lookupable" objects (such as unbound methods
...
or nested classes) now are supported with pickle protocols < 4.
2015-03-31 14:07:24 +03:00
Serhiy Storchaka
80d84c89ee
Merge heads
2015-03-31 13:18:35 +03:00