Berker Peksag
012e287081
Issue #23811 : Add missing newline to the PyCompileError error message.
...
Patch by Alex Shkop.
2015-04-14 18:58:45 +03:00
Berker Peksag
34c9be7ebd
Issue #23811 : Add missing newline to the PyCompileError error message.
...
Patch by Alex Shkop.
2015-04-14 18:57:55 +03:00
Andrew Kuchling
19ddaf6d40
Merge from 3.4
2015-04-14 10:35:43 -04:00
Andrew Kuchling
467a546b5e
Merge from 3.4
2015-04-14 09:59:09 -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
Łukasz Langa
a468db9b0b
Issue #23310 : Fix MagicMock's initializer to work with __methods__.
...
Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim.
2015-04-13 23:12:42 -07:00
Benjamin Peterson
cd1aa9158e
merge 3.4 ( #23929 )
2015-04-13 20:25:11 -04:00
Benjamin Peterson
52a3b74900
remove useless word ( closes #23929 )
2015-04-13 20:24:10 -04: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
Antoine Pitrou
d5aec7ba48
Issue #21116 : Avoid blowing memory when allocating a multiprocessing shared
...
array that's larger than 50% of the available RAM.
Patch by Médéric Boquien.
2015-04-13 20:53:43 +02: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
0f164c606a
Merge
2015-04-13 19:49:04 +02:00
Antoine Pitrou
20d31b5182
Merge
2015-04-13 19:48:52 +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
Zachary Ware
774ac377da
Closes #17202 : Merge with 3.4
2015-04-13 12:11:40 -05:00
Zachary Ware
4c9c848159
Issue #17202 : Add .bat to .hgeol to force them to CRLF.
...
Using LF can a script to fail if it tries to use a label that is
split across 512 byte blocks. Who knows why.
2015-04-13 11:59:54 -05: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
Andrew Kuchling
770b08e8e2
#23883 : add names missing from __all__ (l*gettext, bind_textdomain_codeset)
2015-04-13 09:58:36 -04:00
Łukasz Langa
5f6684efe0
Issue #23310 : Fix MagicMock's initializer to work with __methods__.
...
Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim.
2015-04-14 00:12:57 -07:00
R David Murray
e81a773352
#23464 : remove JoinableQueue that was deprecated in 3.4.4.
...
Patch by A. Jesse Jiryu Davis.
2015-04-12 18:47: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
Serhiy Storchaka
7e7a3dba5f
Issue #23865 : close() methods in multiple modules now are idempotent and more
...
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:24:41 +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
2116b12da5
Issue #23865 : close() methods in multiple modules now are idempotent and more
...
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:29:28 +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
7ecfc82edb
Issue #23400 : Raise same exception on both Python 2 and 3 if sem_open is not available.
...
Patch by Davin Potts.
2015-04-08 17:56:30 +03:00
Berker Peksag
52c0c3382d
Skip nntplib tests when transient errors captured.
2015-04-08 11:24:27 +03:00
Victor Stinner
c9d11c341e
Issue #23879 , asyncio: SelectorEventLoop.sock_connect() must not call connect()
...
again if the first call to connect() raises an InterruptedError.
When the C function connect() fails with EINTR, the connection runs in
background. We have to wait until the socket becomes writable to be notified
when the connection succeed or fails.
2015-04-07 21:38:04 +02:00
Benjamin Peterson
033c58ad97
remove smtpd dead code ( closes #23873 )
...
Patch by Hoolean.
2015-04-07 11:59:06 -04:00
Donald Stufft
b32fb8d274
Update pip to 6.1.1
2015-04-07 07:09:59 -04: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
Victor Stinner
ab73e65032
Issue #23881 : urllib.request.ftpwrapper constructor now closes the socket if
...
the FTP connection failed to fix a ResourceWarning.
2015-04-07 12:49:27 +02:00