Commit Graph

41123 Commits

Author SHA1 Message Date
Senthil Kumaran c4e557ed99 Minor spell fix and formatting fixes in urllib tests. (#959) (#961)
(cherry picked from commit efbd4ea65d)
2017-04-02 01:36:58 -07:00
Senthil Kumaran 4415b823a0 Add helpful explaination to test_password_manager tests. (#936) (#941)
Also uncomment and fix a path test.
(cherry picked from commit 1f5425ff69)
2017-04-01 19:57:04 -07:00
Serhiy Storchaka 7d5d13d8d0 bpo-29953: Fix memory leaks in the replace() method of datetime and t… (#933)
objects when pass out of bound fold argument.
(cherry picked from commit 314d6fca36)
2017-03-31 23:23:49 +03:00
Senthil Kumaran 8d1f935945 Remove catching OSError in ftphandler test. Only URLError is raised in urllib.request module. (#918) (#920)
(cherry picked from commit ed3dd1c02a)
2017-03-30 23:15:51 -07:00
T. Wouters 599bb18103 bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#911)
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable.

Fix the use of recursion in itertools.chain.from_iterable. Using recursion
is unnecessary, and can easily cause stack overflows, especially when
building in low optimization modes or with Py_DEBUG enabled.
(cherry picked from commit 5466d4af5f)
2017-03-30 12:48:23 -07:00
Serhiy Storchaka a6b4e19022 bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#903)
(cherry picked from commit 576def096e)
2017-03-30 18:08:21 +03:00
Senthil Kumaran 1b43a959fb Remove an unrequired TODO in test_urllib2. (#897) (#900)
(cherry picked from commit e6911a44f6)
2017-03-29 23:56:52 -07:00
Xiang Zhang 346dcd65e6 bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-882)
an exception raised at the very first of an iterable would cause pools behave abnormally
(swallow the exception or hang)
2017-03-29 12:50:28 +08:00
Zachary Ware bc2031470e Minor test cleanup (GH-837) (GH-838)
* Remove unused test file

* Remove duplicated text in sndhdrdata README

(cherry picked from commit b8a7daf077)
2017-03-27 00:35:56 -05:00
Mariatta d2fc782410 import sys before we use it on line 9 (GH-828) (GH-833)
(cherry picked from commit 0579e81f30)
2017-03-26 19:53:37 -07:00
Mariatta 8b82236952 bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-811)
(cherry picked from commit 9f0aa4843f)
2017-03-25 03:41:59 -07:00
Serhiy Storchaka 8c8785b2f8 bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True)… (#806)
when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec5c8)
2017-03-24 21:46:25 +02:00
Antoine Pitrou cc3331fec8 bpo-29861: release references to multiprocessing Pool tasks (#743) (#800)
* bpo-29861: release references to multiprocessing Pool tasks (#743)

* bpo-29861: release references to multiprocessing Pool tasks

Release references to tasks, their arguments and their results as soon
as they are finished, instead of keeping them alive until another task
arrives.

* Comments in test

(cherry picked from commit 8988945cdc)

* Fix Misc/NEWS (hopefully)
2017-03-24 14:45:34 +01:00
Xiang Zhang 72c51136c6 fix function name in tabnanny documentation (GH-762) 2017-03-22 15:26:53 +08:00
Serhiy Storchaka 6fad4090ec bpo-28876: bool of large range raises OverflowError (#699) (#734)
(cherry picked from commit e46fb86118)
2017-03-20 09:13:47 +02:00
Serhiy Storchaka da88596a19 bpo-29845: Mark tests that use _testcapi as CPython-only (#711) (#725)
(cherry picked from commit 24c738a9e9)
2017-03-19 20:53:42 +02:00
Serhiy Storchaka fca705d533 bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514) (#722)
(cherry picked from commit a5af6e1af7)
2017-03-19 20:27:16 +02:00
Vinay Sajip 46e81d3345 bpo-29808: Do not fail in SysLogHandler constructor if syslog isn't available. (#696)
bpo-29808: SysLogHandler: Do not fail if initial connect to syslog failed.

(cherry picked from commit 1b038e0738)
2017-03-17 19:52:56 +00:00
Berker Peksag 948171bf99 bpo-16355: Clarify when inspect.getcomments() returns None (#428) (#690)
Initial patch by Vajrasky Kok.

(cherry picked from commit 3f2155ffe6)
2017-03-17 14:59:16 +03:00
Mariatta 4ac01f0ff3 update test_socket AEAD test for kernel 4.9 and up (GH-133) (GH-548)
(cherry picked from commit 9764c151c5)
2017-03-16 20:58:42 -07:00
Berker Peksag 0dfd18a1e1 Fix stderr bug in json.tool test (#346) (#676)
See https://github.com/python/cpython/pull/201#discussion_r103229425.(cherry picked from commit b4e9087e7b)
2017-03-16 16:22:35 +03:00
Berker Peksag 78add3309b Change assertRaises to assertRaisesRegex in test_xmlrpc (#481) (#674)
(cherry picked from commit c6b448b36d)
2017-03-15 14:12:53 +03:00
Michael Seifert 53b2667dcf bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords are not strings (#649) (#671) 2017-03-15 09:42:02 +02:00
Xiang Zhang faa2cc63e4 bpo-28856: Let %b format for bytes support objects that follow the buffer protocol (GH-664) 2017-03-14 15:27:01 +08:00
Yury Selivanov 99f8d33a94 bpo-29742: asyncio get_extra_info() throws exception (#525) (#645) 2017-03-12 17:06:16 -04:00
Yury Selivanov fa448de97d Fix wrapping into StopIteration of return values in generators and coroutines (#644) (#647) 2017-03-12 17:04:06 -04:00
Nick Coghlan c60948464f [3.6] bpo-29723: Consistently configure sys.path[0] (#636)
Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.

This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.

The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.

This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.
(cherry picked from commit d2977a3ae2)
2017-03-12 21:34:22 +10:00
Zachary Ware 7c6d6e0564 bpo-29763: Use support.unlink instead of os.unlink (GH-624) (GH-625)
support.unlink waits for the files to be removed before returning
2017-03-11 22:39:54 -06:00
Zachary Ware df6f3f6f57 fix subprocess on Windows (GH-391 backport) (GH-623) 2017-03-11 17:16:34 -06:00
Serhiy Storchaka 80dfbe30b7 [3.6] bpo-29773: Add more cases for testing string to float conversion errors. (#586)
(cherry picked from commit 9e6ac83aca)
2017-03-09 21:01:49 +02:00
orenmn 26d013e00f [3.6] bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements (#579) 2017-03-09 16:06:47 +02:00
Serhiy Storchaka eb65edd102 [3.6] bpo-28231: The zipfile module now accepts path-like objects for external paths. (#561)
(cherry picked from commit 8606e9524a)
2017-03-08 15:45:43 +02:00
Serhiy Storchaka 666165fddf [3.6] bpo-28230: Document the pathlib support in tarfile and add tests. (#559) 2017-03-08 12:29:33 +02:00
Benjamin Peterson 6a4b04cd33 Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554) (#555)
This reverts commit ace5c0fdd9.
2017-03-07 23:56:59 -08:00
Xiang Zhang 78ad039bcf bpo-26915: Test identity first in index() and count() of collections.abc.Sequence (GH-553) 2017-03-08 11:43:35 +08:00
Xiang Zhang 284a2ba140 bpo-28728: clarify possible test failure due to ISP (GH-412) (GH-531) 2017-03-07 11:53:29 +08:00
Xiang Zhang df6d7b406f [3.6] bpo-29714: Fix a regression that bytes format may fail when containing zero bytes inside. (GH-504) 2017-03-06 18:17:10 +08:00
Ivan Levkivskyi b414e349eb bpo-29638: Fix spurious refleaks after typing is imported (#469) (#483) 2017-03-05 21:18:43 +02:00
Petr Motejlek 3405792b02 bpo-29615: backport to 3.6 (#478) 2017-03-05 18:14:06 +02:00
Ned Deily cefca3d7b5 Update pydoc topics for 3.6.0rc1 2017-03-04 12:18:43 -05:00
Ned Deily 1d391f926b [3.6] bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS (#463)
Skip some tests of select.poll when running on macOS due to unresolved
issues with the underlying system poll function on some macOS versions.

(cherry picked from commit de04644627)
2017-03-04 06:19:05 -05:00
Ned Deily 95c50e5aed [3.6] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454)
* bpo-27593: Get SCM build info from git instead of hg. (#446)

sys.version and the platform module python_build(),
python_branch(), and python_revision() functions now use
git information rather than hg when building from a repo.

Based on original patches by Brett Cannon and Steve Dower.
(cherry picked from commit 5c4b0d063a)
2017-03-04 01:05:06 -05:00
Berker Peksag 21ce65aa67 [3.6] bpo-29623: Make PathLike objects work with ConfigParser.read() (#242) (#432)
(cherry picked from commit 85b8d01c91)

Conflicts:

	Lib/test/test_configparser.py
2017-03-03 20:48:37 +03:00
Berker Peksag c7ff163abf Add Python version since deprecation in base64 methods. (#33) (#429)
Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.

(cherry picked from commit c643a967dd)
2017-03-03 18:07:18 +03:00
Mariatta 93692b1a7c getpass: update docstrings (GH-49) (GH-419)
(cherry picked from commit baf7bb30a0)
2017-03-02 21:56:06 -08:00
Yury Selivanov d8b72e4a06 bpo-28963: Fix out of bound iteration in asyncio.Future.remove_done_callback/C (#408) 2017-03-03 00:05:22 -05:00
Yury Selivanov 2ef08d3be7 asyncio: Optimize _get_running_loop() to call getpid() only when there's a loop 2017-03-02 23:58:29 -05:00
Seth M. Larson 604faba1db bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405) 2017-03-02 23:31:17 -05:00
Yury Selivanov 13802a3b11 bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406) 2017-03-02 23:19:49 -05:00
Yury Selivanov dea5101ae1 bpo-28893: Set __cause__ for errors in async iteration protocol (#407) 2017-03-02 22:28:07 -05:00