summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.6] bpo-29692: contextlib.contextmanager may incorrectly unchain ↵Mariatta2017-04-131-0/+23
| | | | | | | | | | | RuntimeError (GH-949) (#1105) contextlib._GeneratorContextManager.__exit__ includes a special case to deal with PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context manager body. Previously this check was too permissive, and undid one level of chaining on *all* RuntimeError instances, not just those that wrapped a StopIteration instance. (cherry picked from commit 00c75e9a45ff0366c185e9e8a2e23af5a35481b0)
* bpo-29998: Pickling and copying ImportError now preserves name and path ↵Serhiy Storchaka2017-04-081-0/+20
| | | | | | (#1010) (#1042) attributes. (cherry picked from commit b785396ab451b0c9d6ae9ee5a9e56c810209a6cb)
* Remove Invalid comment in test_urllib2.py. (#1022)Senthil Kumaran2017-04-071-1/+0
| | | (cherry picked from commit fd0cd07a5a3c964c084f4efc5bbcb89dd2193ee6)
* correct parse_qs and parse_qsl test case descriptions. (#968) (#997)Senthil Kumaran2017-04-061-6/+6
| | | (cherry picked from commit 257b980b316a5206ecf6c23b958e2b7c4df4f3de)
* Minor spell fix and formatting fixes in urllib tests. (#959) (#961)Senthil Kumaran2017-04-022-2/+6
| | | (cherry picked from commit efbd4ea65dbb9f87b1afeec6a760802756badee5)
* Add helpful explaination to test_password_manager tests. (#936) (#941)Senthil Kumaran2017-04-021-15/+26
| | | | Also uncomment and fix a path test. (cherry picked from commit 1f5425ff69ea0531d869b4f9fa28bd3f66ca3de7)
* bpo-29953: Fix memory leaks in the replace() method of datetime and t… (#933)Serhiy Storchaka2017-03-311-0/+5
| | | | | objects when pass out of bound fold argument. (cherry picked from commit 314d6fca36a4eaa0541218431d14804fadec6488)
* Remove catching OSError in ftphandler test. Only URLError is raised in ↵Senthil Kumaran2017-03-311-3/+1
| | | | | urllib.request module. (#918) (#920) (cherry picked from commit ed3dd1c02af6872bd0748f7b9a5dadb89f7b830f)
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#911)T. Wouters2017-03-301-0/+8
| | | | | | | | | * 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 5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14)
* bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#903)Serhiy Storchaka2017-03-301-0/+112
| | | | (cherry picked from commit 576def096ec7b64814e038f03290031f172886c3)
* Remove an unrequired TODO in test_urllib2. (#897) (#900)Senthil Kumaran2017-03-301-1/+0
| | | (cherry picked from commit e6911a44f69c0d302db60f49952a9cf69da69a2b)
* bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-882)Xiang Zhang2017-03-291-1/+58
| | | | an exception raised at the very first of an iterable would cause pools behave abnormally (swallow the exception or hang)
* Minor test cleanup (GH-837) (GH-838)Zachary Ware2017-03-272-7/+0
| | | | | | | * Remove unused test file * Remove duplicated text in sndhdrdata README (cherry picked from commit b8a7daf077dab18e9e3701c5380b542ae0aa9a94)
* bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True)… (#806)Serhiy Storchaka2017-03-241-0/+5
| | | | | | when the OS gives priority to errors such as EACCES over EEXIST. (cherry picked from commit af7b9ec5c855366feef4c67dc492d64b3baf84ca)
* bpo-29861: release references to multiprocessing Pool tasks (#743) (#800)Antoine Pitrou2017-03-241-0/+28
| | | | | | | | | | | | | | | | * 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 8988945cdc27ffa86ba8c624e095b51c459f5154) * Fix Misc/NEWS (hopefully)
* bpo-28876: bool of large range raises OverflowError (#699) (#734)Serhiy Storchaka2017-03-201-4/+13
| | | (cherry picked from commit e46fb8611867fa3b407a813f53137929b7cb4a10)
* bpo-29845: Mark tests that use _testcapi as CPython-only (#711) (#725)Serhiy Storchaka2017-03-194-0/+4
| | | (cherry picked from commit 24c738a9e91b8f46da6166663d8ce7ec18cec784)
* bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. ↵Serhiy Storchaka2017-03-192-1/+27
| | | | | (#514) (#722) (cherry picked from commit a5af6e1af77ee0f9294c5776478a9c24d9fbab94)
* bpo-16355: Clarify when inspect.getcomments() returns None (#428) (#690)Berker Peksag2017-03-171-0/+5
| | | | | Initial patch by Vajrasky Kok. (cherry picked from commit 3f2155ffe683080f2a1b28408fa48d43ba92f943)
* update test_socket AEAD test for kernel 4.9 and up (GH-133) (GH-548)Mariatta2017-03-171-8/+7
| | | (cherry picked from commit 9764c151c51480a7ca6042b1ccd69be2620ff360)
* Fix stderr bug in json.tool test (#346) (#676)Berker Peksag2017-03-161-5/+4
| | | See https://github.com/python/cpython/pull/201#discussion_r103229425.(cherry picked from commit b4e9087e7b77e8f76feac76f9c1ab21b49c0c766)
* Change assertRaises to assertRaisesRegex in test_xmlrpc (#481) (#674)Berker Peksag2017-03-151-3/+3
| | | (cherry picked from commit c6b448b36d22769c684bb3276f85c1b47d15ab63)
* bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords ↵Michael Seifert2017-03-151-0/+26
| | | | are not strings (#649) (#671)
* bpo-28856: Let %b format for bytes support objects that follow the buffer ↵Xiang Zhang2017-03-141-2/+6
| | | | protocol (GH-664)
* bpo-29742: asyncio get_extra_info() throws exception (#525) (#645)Yury Selivanov2017-03-121-0/+12
|
* Fix wrapping into StopIteration of return values in generators and ↵Yury Selivanov2017-03-121-0/+15
| | | | coroutines (#644) (#647)
* [3.6] bpo-29723: Consistently configure sys.path[0] (#636)Nick Coghlan2017-03-121-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | 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 d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d)
* bpo-29763: Use support.unlink instead of os.unlink (GH-624) (GH-625)Zachary Ware2017-03-121-4/+4
| | | support.unlink waits for the files to be removed before returning
* [3.6] bpo-29773: Add more cases for testing string to float conversion ↵Serhiy Storchaka2017-03-091-8/+20
| | | | | | errors. (#586) (cherry picked from commit 9e6ac83acae31de2b072e665e177db9fcdf7c049)
* [3.6] bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements ↵orenmn2017-03-091-15/+24
| | | | (#579)
* [3.6] bpo-28231: The zipfile module now accepts path-like objects for ↵Serhiy Storchaka2017-03-081-15/+102
| | | | | | external paths. (#561) (cherry picked from commit 8606e9524a7a4065042f7f228dc57eb74f88e4d3)
* [3.6] bpo-28230: Document the pathlib support in tarfile and add tests. (#559)Serhiy Storchaka2017-03-081-0/+76
|
* Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554) (#555)Benjamin Peterson2017-03-081-1/+1
| | | This reverts commit ace5c0fdd9b962e6e886c29dbcea72c53f051dc4.
* bpo-26915: Test identity first in index() and count() of ↵Xiang Zhang2017-03-081-4/+13
| | | | collections.abc.Sequence (GH-553)
* bpo-28728: clarify possible test failure due to ISP (GH-412) (GH-531)Xiang Zhang2017-03-071-5/+15
|
* [3.6] bpo-29714: Fix a regression that bytes format may fail when containing ↵Xiang Zhang2017-03-061-0/+10
| | | | | | zero bytes inside. (GH-504)
* bpo-29638: Fix spurious refleaks after typing is imported (#469) (#483)Ivan Levkivskyi2017-03-051-3/+8
|
* bpo-29615: backport to 3.6 (#478)Petr Motejlek2017-03-051-1/+89
|
* [3.6] bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS (#463)Ned Deily2017-03-042-0/+5
| | | | | | | 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 de04644627f82d9dc48b3423def7ff5b4aa1926a)
* [3.6] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454)Ned Deily2017-03-041-6/+6
| | | | | | | | | | | * 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 5c4b0d063aba0a68c325073f5f312a2c9f40d178)
* [3.6] bpo-29623: Make PathLike objects work with ConfigParser.read() (#242) ↵Berker Peksag2017-03-031-1/+11
| | | | | | | | | | (#432) (cherry picked from commit 85b8d01c916b482dac937b93ede1e53b1db0361c) Conflicts: Lib/test/test_configparser.py
* Add Python version since deprecation in base64 methods. (#33) (#429)Berker Peksag2017-03-031-0/+8
| | | | | | | 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 c643a967dd7d33ccefa5b61b38caf40b448057ce)
* bpo-28963: Fix out of bound iteration in ↵Yury Selivanov2017-03-031-0/+29
| | | | asyncio.Future.remove_done_callback/C (#408)
* bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)Seth M. Larson2017-03-031-0/+24
|
* bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406)Yury Selivanov2017-03-031-0/+17
|
* bpo-28893: Set __cause__ for errors in async iteration protocol (#407)Yury Selivanov2017-03-031-0/+38
|
* bpo-29703: asyncio: Fix creating new event loops in child processes. (#404) ↵Yury Selivanov2017-03-031-0/+22
| | | | (#410)
* bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting ↵Martijn Pieters2017-02-271-0/+9
| | | | operations (#95)
* bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-330)Xiang Zhang2017-02-271-0/+3
|
* [3.6] bpo-29110: Fix file object leak in `aifc.open` (#310)INADA Naoki2017-02-261-1/+17
| | | | | (cherry picked from commit 03f68b60e17b57f6f13729ff73245dbb37b30a4c) (GH-162) (cherry picked from commit 5dc33eea538361f8a218255f83db2e9298dd8c53) (GH-293)