Commit graph

89007 commits

Author SHA1 Message Date
Ł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
5aec1a44e8 Merge with 3.4 2015-04-13 18:34:57 -05:00
Zachary Ware
bbbbe7e4e6 Make Argument Clinic's '--make' option work on Windows. 2015-04-13 18:33:41 -05:00
Zachary Ware
8ef887ce47 Issue #20586: Argument Clinic now ensures signatures on functions without docstrings. 2015-04-13 18:22:35 -05:00
Larry Hastings
a6cc551502 Issue #22631: Added Linux-specific socket constant CAN_RAW_FD_FRAMES.
Patch courtesy of Joe Jevnik.
2015-04-13 17:48:40 -04:00
Zachary Ware
d827be8ff1 Closes #23730: merge with 3.4 2015-04-13 16:44:05 -05:00
Zachary Ware
ae9f0fede3 Issue #23730: Document the return value of ZipFile.extract
Patch by Stéphane Wirtel.
2015-04-13 16:40:49 -05:00
Zachary Ware
38019d1c34 Closes #23938: List Windows XP as an unsupported platform.
Patch by Alex Walters.
2015-04-13 15:51:59 -05:00
Brett Cannon
8396b8ef08 Fix a grammar error in the porting HOWTO as found by Eric Smith. 2015-04-13 16:32:16 -04:00
Brett Cannon
9d2a01fb2b Issue #23822: Fix test_py_compile to not fail under -O. 2015-04-13 16:28:11 -04:00
Brett Cannon
fd53f98459 Issue #23733: Mention bytes.__mod__ in the porting HOWTO. 2015-04-13 16:21:07 -04:00
doko@ubuntu.com
65da9a87c5 merge heads 2015-04-13 22:11:34 +02:00
doko@ubuntu.com
ae18f387e4 merge 3.4 2015-04-13 22:10:47 +02:00
doko@ubuntu.com
100aa18556 - Makefile.pre.in (LIBPL): Use the definition from configure.ac 2015-04-13 22:10:21 +02: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
doko@ubuntu.com
4b761bf79a - merge 3.4 2015-04-13 22:00:30 +02:00
doko@ubuntu.com
1345d20193 - Use PLATDIR for the platform directory everywhere (refactoring only) 2015-04-13 21:59:57 +02:00
doko@ubuntu.com
42db2f684c - merge heads 2015-04-13 21:49:11 +02:00
doko@ubuntu.com
7f825226e3 - merge heads 2015-04-13 21:48:44 +02:00
Antoine Pitrou
3764fc2951 Fix doc build error 2015-04-13 21:07:57 +02:00
Antoine Pitrou
b9f2ab9eae Fix duplicate doc entry for SSLContext.get_ca_certs()
(closes #18147)
2015-04-13 21:06:51 +02:00
Antoine Pitrou
97aa953550 Fix duplicate doc entry for SSLContext.get_ca_certs()
(closes #18147)
2015-04-13 21:06:15 +02:00
doko@ubuntu.com
f58b1cbf87 - the PKG_PROG_PKG_CONFIG macro is not part of autoconf, but comes from third
party sources. Run aclocal to import it to aclocal.m4 and add aclocal.m4
   to the archive.
2015-04-13 20:54:06 +02:00
doko@ubuntu.com
3536350d84 - the PKG_PROG_PKG_CONFIG macro is not part of autoconf, but comes from third
party sources. Run aclocal to import it to aclocal.m4 and add aclocal.m4
   to the archive.
2015-04-13 20:53:43 +02: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
4269d6db93 Issue #23732: Mention the new -b semantics in the porting HOWTO. 2015-04-13 14:37:50 -04: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
682d05528e Null merge from 3.4 2015-04-13 19:49:35 +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
50ebf0316a Merge with 3.4 2015-04-13 12:30:53 -05:00
Zachary Ware
30cc6fae98 Force the Windows readme to CRLF 2015-04-13 12:28:11 -05: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
Zachary Ware
3f103462fb Closes #23932: Merge with 3.4 2015-04-13 11:32:01 -05:00
Zachary Ware
f3b990e48c Issue #23932: Update the tutorial section on function annotations.
Patch by Juti Noppornpitak.
2015-04-13 11:30:47 -05:00
Zachary Ware
0b1e4f1427 Merge with 3.4 2015-04-13 11:08:55 -05:00
Zachary Ware
bb5dbf840c Attribute Michael Dorman for his initial patch on issue #18402. 2015-04-13 11:07:35 -05:00
Zachary Ware
7dfa094e78 Closes #18402: Merge with 3.4 2015-04-13 10:53:11 -05:00
Zachary Ware
52797d8526 Merge heads 2015-04-13 10:51:37 -05:00
Zachary Ware
a3655eaa39 Issue #18402: Also look for 64 bit Perl in build_ssl.py.
It's still not necessary to build, but may be useful to some.
2015-04-13 10:46:40 -05:00