Commit graph

21491 commits

Author SHA1 Message Date
Senthil Kumaran
041e6006db Remove Invalid comment in test_urllib2.py (#1021)
(cherry picked from commit fd0cd07a5a)
2017-04-07 00:56:41 -07:00
Senthil Kumaran
2d8bda5c16 correct parse_qs and parse_qsl test case descriptions. (#968) (#998)
(cherry picked from commit 257b980b31)
2017-04-05 06:52:53 -07:00
Senthil Kumaran
9881e02d69 Minor spell fix and formatting fixes in urllib tests. (#959) (#960)
(cherry picked from commit efbd4ea65d)
2017-04-02 01:37:04 -07:00
Senthil Kumaran
6356a3b710 Remove catching OSError in ftphandler test. Only URLError is raised in urllib.request module. (#918) (#921)
(cherry picked from commit ed3dd1c02a)
2017-03-30 23:15:56 -07:00
T. Wouters
9273dfe180 bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#912)
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:55 -07:00
Serhiy Storchaka
c90ff1b78c bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#904)
(cherry picked from commit 576def096e)
2017-03-30 10:32:19 +03:00
Senthil Kumaran
0fadf25e69 Remove an unrequired TODO in test_urllib2. (#897) (#901)
(cherry picked from commit e6911a44f6)
2017-03-29 23:56:57 -07:00
Xiang Zhang
9f8e090458 bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-884)
an exception raised at the very first of an iterable would cause pools behave abnormally
(swallow the exception or hang)
2017-03-29 12:51:29 +08:00
Zachary Ware
ec3a32699e Minor test cleanup (GH-837) (GH-839)
* Remove unused test file

* Remove duplicated text in sndhdrdata README

(cherry picked from commit b8a7daf077)
2017-03-27 00:38:20 -05:00
Serhiy Storchaka
1fc1f8d7f7 bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805) (#807)
when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec5c8)
2017-03-24 21:46:46 +02:00
Antoine Pitrou
80cb6ed4db bpo-29861: release references to multiprocessing Pool tasks (#743) (#801)
* 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??
2017-03-24 15:19:18 +01:00
Serhiy Storchaka
4276068fe5 bpo-28876: bool of large range raises OverflowError (#699) (#735)
(cherry picked from commit e46fb86118)
2017-03-20 09:37:31 +02:00
Serhiy Storchaka
08612ed6a9 bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514) (#727)
(cherry picked from commit a5af6e1af7)
2017-03-20 00:51:16 +02:00
Serhiy Storchaka
bb67f10179 bpo-29845: Mark tests that use _testcapi as CPython-only (#711) (#726)
(cherry picked from commit 24c738a9e9)
2017-03-19 21:38:53 +02:00
Berker Peksag
41b4a2189f bpo-16355: Clarify when inspect.getcomments() returns None (#428) (#691)
Initial patch by Vajrasky Kok.

(cherry picked from commit 3f2155ffe6)
2017-03-17 14:37:51 +03:00
Berker Peksag
9a29d7577a Change assertRaises to assertRaisesRegex in test_xmlrpc (#481) (#675)
(cherry picked from commit c6b448b36d)
2017-03-15 14:13:09 +03:00
Michael Seifert
0641ada9b7 bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords are not strings (#649) (#672) 2017-03-15 09:42:30 +02:00
Yury Selivanov
db522dc862 bpo-29742: asyncio get_extra_info() throws exception (#525) (#646) 2017-03-12 17:06:04 -04:00
Yury Selivanov
216803d8e1 Fix wrapping into StopIteration of return values in generators and coroutines (#644) (#648) 2017-03-12 17:03:46 -04:00
orenmn
e2c88bdd6b bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements 2017-03-09 21:29:22 +02:00
Serhiy Storchaka
5fad493dc6 [3.5] bpo-29773: Add more cases for testing string to float conversion errors. (#587)
(cherry picked from commit 9e6ac83aca)
2017-03-09 21:02:15 +02:00
Benjamin Peterson
312f7dfb7c Revert "bpo-29571: Use correct locale encoding in test_re (#149)" (#554) (#556)
This reverts commit ace5c0fdd9.
2017-03-07 23:56:52 -08:00
Nick Coghlan
93602e3af7 [3.5] bpo-29537: Tolerate legacy invalid bytecode (#169)
bpo-27286 fixed a problem where BUILD_MAP_UNPACK_WITH_CALL could
be emitted with an incorrect oparg value, causing the eval loop
to access the wrong stack entry when attempting to read the
function name.

The associated magic number change caused significant problems when
attempting to upgrade to 3.5.3 for anyone that relies on pre-cached
bytecode remaining valid across maintenance releases.

This patch restores the ability to import legacy bytecode generated
by 3.5.0, 3.5.1 or 3.5.2, and modifies the eval loop to
avoid any harmful consequences from the potentially malformed legacy
bytecode.

Original import patch by Petr Viktorin, eval loop patch by Serhiy Storchaka,
and tests and integration by Nick Coghlan.
2017-03-08 16:41:01 +10:00
Ivan Levkivskyi
997cc69a68 Backport fix for spurious refleak failures (#482) 2017-03-05 21:19:42 +02:00
Petr Motejlek
c6e199f2e9 bpo-29615: backport to 3.5 (#479) 2017-03-05 18:14:26 +02:00
Ned Deily
a2edd3ae40 [3.5] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454) (#455)
* 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)

(cherry picked from commit 95c50e5aed)
2017-03-04 01:34:19 -05:00
Seth M. Larson
f7f024a721 bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405) 2017-03-03 12:23:44 -05:00
Berker Peksag
d0620bcd4e Add Python version since deprecation in base64 methods. (#33) (#430)
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:01 +03:00
Yury Selivanov
8b73b6198b bpo-29703: asyncio: Fix creating new event loops in child processes. (#411) 2017-03-02 21:40:57 -05:00
Martijn Pieters
bc144f0abf bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations (#94) 2017-02-27 19:07:27 +03:00
Xiang Zhang
8400ae209b bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-329) 2017-02-27 11:46:37 +08:00
INADA Naoki
b7fb1e25c8 bpo-29110: Fix file object leak in aifc.open (GH-311)
(cherry picked from commit 03f68b6) (GH-162)
(cherry picked from commit 5dc33ee) (GH-293)
2017-02-27 04:35:00 +09:00
Mariatta
bc33cd4e7a [3.5] bpo-28556: Update to typing: treat subscripted generics as proxies (GH-265) (GH-269)
(cherry picked from commit abb3b8ad94)
(cherry picked from commit 365cb5bb90)
2017-02-24 16:41:19 -08:00
Serhiy Storchaka
5010a77a4d [3.5] bpo-29532: Altering a kwarg dictionary passed to functools.partial() no longer affects a partial object after creation. (#222) 2017-02-22 11:46:32 +02:00
Mark Dickinson
0936a00fe0 bpo-29602: fix signed zero handling in complex constructor. (#203) (#205)
* Fix incorrect handling of signed zeros for complex-related classes.

* Add Misc/NEWS entry.

(cherry picked from commit 112ec38c15)
2017-02-20 21:50:49 +00:00
Nick Coghlan
760f596b6a [3.5] bpo-29571: Use correct locale encoding in test_re (#149) (#154)
``local.getlocale(locale.LC_CTYPE)`` and
``locale.getpreferredencoding(False)`` may give different answers
in some cases (such as the ``en_IN`` locale).

``re.LOCALE`` uses the latter, so update the test case to match.
2017-02-19 10:03:50 +05:30
Mariatta
9c5684e0d3 bpo-28556: Various updates to typing (#28) (#78)
various updates from upstream python/typing repo:

- Added typing.Counter and typing.ChainMap generics
- More flexible typing.NamedTuple
- Improved generic ABC caching
- More tests
- Bugfixes
- Other updates

* Add Misc/NEWS entry

* Add issue number

Contributed by Ivan Levkivskyi @ilevkivskyi

(cherry picked from commit b692dc8475)
2017-02-13 14:28:58 -08:00
Steve Dower
d3c4853b78 Issue #29416: Prevent infinite loop in pathlib.Path.mkdir 2017-02-04 14:54:56 -08:00
Serhiy Storchaka
7e10dbbd45 Issue #29444: Fixed out-of-bounds buffer access in the group() method of
the match object.  Based on patch by WGH.
2017-02-04 22:53:57 +02:00
Vinay Sajip
db6322cb8a Fixes #24875: pip can now be installed in a venv with --system-site-packages. 2017-02-02 19:05:19 +00:00
Victor Stinner
a5917d1d15 Issue #29300: test_struct tests unpack_from() with keywords
Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.
2017-02-02 14:18:18 +01:00
Serhiy Storchaka
713640c4c9 Issue #29337: Fixed possible BytesWarning when compare the code objects.
Warnings could be emitted at compile time.
2017-01-24 20:49:26 +02:00
Martin Panter
b1b985da12 Issue #29273: Remove unneeded workaround to restore locale
The “readline” module already has a workaround using setlocale(LC_CTYPE,
NULL). The code in test___all__ calls getlocale(), which can subtly alter
the locale string and cause the test framework to complain.
2017-01-23 22:11:09 +00:00
Gregory P. Smith
1fa08bcbbb Skip the test requiring ctypes if ctypes is unavailable.
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
2017-01-22 22:19:38 -08:00
Gregory P. Smith
21d333b703 typo fix, extra '.' :) 2017-01-22 20:54:42 -08:00
Guido van Rossum
95919c096c Issue #28556: Allow defining methods in NamedTuple class syntax (#362) 2017-01-22 17:47:20 -08:00
Guido van Rossum
d7adfe129c Issue #28556: various style fixes for typing.py 2017-01-22 17:43:53 -08:00
Gregory P. Smith
50e16e33af Issue #29335: Fix subprocess.Popen.wait() when the child process has
exited to a stopped instead of terminated state (ex: when under ptrace).
2017-01-22 17:28:38 -08:00
Xiang Zhang
7fe28ad837 Issue #29290: argparse help messages won't wrap at non-breaking spaces. 2017-01-22 14:37:22 +08:00
Guido van Rossum
e9ed560fce Issue #29198: add AsyncGenerator (Jelle Zijlstra) 2017-01-18 13:10:31 -08:00