Commit Graph

94075 Commits

Author SHA1 Message Date
Victor Stinner 6d81a2136d regrtest doesn't ignore -j1 anymore
* regrtest now uses subprocesses when the -j1 command line option
  is used: each test file runs in a fresh child process. Before, the -j1 option
  was ignored.
* Tools/buildbot/test.bat script now uses -j1 by default to run
  each test file in fresh child process.
2016-05-20 13:15:55 +02:00
Victor Stinner 2292edf574 Merge 3.5 (issue #26741) 2016-05-20 13:06:55 +02:00
Victor Stinner b0d43ce890 asyncio: fix ResourceWarning related to subprocesses
Issue #26741: asyncio: BaseSubprocessTransport._process_exited() now copies the
return code from the child watched to the returncode attribute of the Popen
object. On Python 3.6, it is required to avoid a ResourceWarning.
2016-05-20 13:05:48 +02:00
Victor Stinner 5a48e21ff1 subprocess now emits a ResourceWarning warning
Issue #26741: subprocess.Popen destructor now emits a ResourceWarning warning
if the child process is still running.
2016-05-20 12:11:15 +02:00
Victor Stinner a58e2c5c49 Issue #26741: POSIX implementation of subprocess.Popen._execute_child() now
sets the returncode attribute using the child process exit status when exec
failed.
2016-05-20 12:08:12 +02:00
Victor Stinner 7438c612ab Use "with popen:" in test_subprocess
Issue #26741.
2016-05-20 12:43:15 +02:00
Victor Stinner 19ed27ec2b Optimize pickle.load() and pickle.loads()
Issue #27056: Optimize pickle.load() and pickle.loads(), up to 10% faster to
deserialize a lot of small objects.
2016-05-20 11:42:37 +02:00
Victor Stinner 744c34e2ea Cleanup import.c
* Replace PyUnicode_RPartition() with PyUnicode_FindChar() and
  PyUnicode_Substring() to avoid the creation of a temporary tuple.
* Use PyUnicode_FromFormat() to build a string and avoid the single_dot ('.')
  singleton

Thanks Serhiy Storchaka for your review.
2016-05-20 11:36:13 +02:00
Guido van Rossum 03e6061956 Back out pathlib.Path.path attr. (Merge 3.5->3.6) 2016-05-19 13:11:17 -07:00
Guido van Rossum 387e6e3817 Back out pathlib.Path.path attr. (Merge 3.4->3.5) 2016-05-19 13:10:20 -07:00
Guido van Rossum 3d4d01f614 Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.
These added a path attribute to pathlib.Path objects, and docs.
Instead, we're going to use PEP 519.

(Starting in the 3.4 branch and merging forward from there since that's what I did originally.)
2016-05-19 13:00:21 -07:00
Steve Dower 7fa6378747 Issue #27053: Updates make_zip.py to correctly generate library ZIP file. 2016-05-19 10:47:55 -07:00
Steve Dower d8bf09c6cd Issue #27053: Updates make_zip.py to correctly generate library ZIP file. 2016-05-19 10:47:47 -07:00
Victor Stinner 4a3443be43 Merge 3.5 (issue #27057) 2016-05-19 16:48:06 +02:00
Victor Stinner 3116cc44af Fix os.set_inheritable() on Android
Issue #27057: Fix os.set_inheritable() on Android, ioctl() is blocked by
SELinux and fails with EACCESS. The function now falls back to fcntl().

Patch written by Michał Bednarski.
2016-05-19 16:46:18 +02:00
Steve Dower 99ab0068af Merge launcher change from 3.5 2016-05-18 15:54:24 -07:00
Steve Dower 4962141804 Removes versioning from py.exe launcher installer and ensures that old launchers are replaced by newer ones. 2016-05-18 15:54:05 -07:00
Guido van Rossum c41c70fd9b Fix #27014 -- infinite recursion using typing.py. (Merge 3.5 -> 3.6.) 2016-05-18 08:36:16 -07:00
Guido van Rossum 1cea70f08c Fix #27014 -- infinite recursion using typing.py. 2016-05-18 08:35:00 -07:00
Serhiy Storchaka c9736b4bdf Issue #27036: Fixed formatting references to "bytes-like object" in plural. 2016-05-18 13:55:11 +03:00
Serhiy Storchaka e5ea1abf91 Issue #27036: Fixed formatting references to "bytes-like object" in plural. 2016-05-18 13:54:54 +03:00
Serhiy Storchaka b6686fe0a0 Fixed test_sizeof for deque. 2016-05-18 13:01:19 +03:00
Serhiy Storchaka e23c90c344 Fixed test_sizeof for deque. 2016-05-18 13:00:56 +03:00
Martin Panter 9ef6b7fbde Issue #23275: Don’t think this made it into alpha 1 2016-05-18 07:19:32 +00:00
Berker Peksag 094c9c921c Issue #23275: Allow () = iterable assignment syntax
Documentation updates by Martin Panter.
2016-05-18 08:44:29 +03:00
Senthil Kumaran 93d22ecc7c merge from 3.5
issue27045 - Use backslash in windows path to script file.
2016-05-17 20:51:15 -07:00
Senthil Kumaran c9bfc13aa9 issue27045 - Use backslash in windows path to script file. 2016-05-17 20:50:43 -07:00
Terry Jan Reedy d619ff4b46 Merge with 3.5 2016-05-17 22:48:34 -04:00
Terry Jan Reedy 092473eef9 Issue #21939: Test IDLE percolator. Original patch by Saimadhav Heblikar. 2016-05-17 22:48:22 -04:00
Ned Deily 36c18956b0 Issue #27049: fix doc typo 2016-05-17 21:45:13 -04:00
Ned Deily cec95813b2 Issue #27049: fix doc typo 2016-05-17 21:44:46 -04:00
Terry Jan Reedy 7fc4116515 Merge with 3.5 2016-05-17 19:58:17 -04:00
Terry Jan Reedy fdec2a3424 Issue #21676: test IDLE replace dialog. Original patch by Saimadhav Heblikar. 2016-05-17 19:58:02 -04:00
doko@ubuntu.com bc7315068f - make some internal symbols static 2016-05-18 01:06:01 +02:00
Terry Jan Reedy 307676face Merge with 3.5 2016-05-17 18:35:33 -04:00
Terry Jan Reedy c359af1530 Issue #18410: add missing parent argument. 2016-05-17 18:35:07 -04:00
Terry Jan Reedy 40a05621f9 Merge with 3.5 2016-05-17 18:18:55 -04:00
Terry Jan Reedy b236fe4515 Issue #18410: Test IDLE's search dialog; original patch by Westley Martínez. 2016-05-17 18:18:37 -04:00
Ned Deily 4284ffd2f8 Merge 3.6.0a1 updates 2016-05-17 17:09:48 -04:00
Ned Deily 786ed5537c Post-release cleanup: 3.6.0a1 -> 3.6.0a2 2016-05-17 16:55:41 -04:00
Steve Dower 50f09f5e30 Merge with 3.5 2016-05-17 08:58:04 -07:00
Steve Dower c710826ef2 Fixes unnecessary rebuild when building Windows releases with PGO 2016-05-17 08:57:53 -07:00
Benjamin Peterson 815b61d4ce merge 3.5 (#27042) 2016-05-16 23:20:32 -07:00
Benjamin Peterson 54044d605f class definitions only get argument lists (closes #27042) 2016-05-16 23:20:22 -07:00
Benjamin Peterson bc7ee43a6d Backed out changeset 71ff2235bb4c (closes #27042) 2016-05-16 23:18:33 -07:00
Benjamin Peterson c01d21e3aa null merge 3.5 2016-05-16 22:54:21 -07:00
Benjamin Peterson ed64d6b4a5 regen importlib bytecode 2016-05-16 22:54:05 -07:00
Benjamin Peterson 5b2b3aae2a merge 3.5 (#26991) 2016-05-16 22:53:44 -07:00
Benjamin Peterson ad887cf7d1 fix possible refleak in MAKE_FUNCTION (closes #26991)
Patch by Xiang Zhang.
2016-05-16 22:52:40 -07:00
Terry Jan Reedy 2deb1eafec Merge with 3.5 2016-05-16 23:32:41 -04:00