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
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
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
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
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
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
Yury Selivanov
01e5230ef0
bpo-29703: asyncio: Fix creating new event loops in child processes. ( #404 ) ( #410 )
2017-03-02 22:06:15 -05:00
Martijn Pieters
53039ad381
bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations ( #95 )
2017-02-27 19:08:01 +03:00
Xiang Zhang
4b6c41768a
bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-330)
2017-02-27 11:45:42 +08:00
INADA Naoki
c9131b61fa
[3.6] bpo-29110: Fix file object leak in `aifc.open` ( #310 )
...
(cherry picked from commit 03f68b60e1
) (GH-162)
(cherry picked from commit 5dc33eea53
) (GH-293)
2017-02-27 04:09:32 +09:00
Berker Peksag
6b81003bdb
bpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathLike objects ( #157 ) ( #323 )
...
(cherry picked from commit d5c11f7ace
)
2017-02-26 20:38:31 +03:00
Mariatta
bea9d2f648
[3.6] bpo-28556: Update to typing: treat subscripted generics as proxies (GH-265) (GH-268)
...
(cherry picked from commit abb3b8ad94
)
(cherry picked from commit 365cb5bb90
)
2017-02-24 16:40:50 -08:00
Serhiy Storchaka
e48fd93bbb
bpo-29532: Altering a kwarg dictionary passed to functools.partial() no longer affects a partial object after creation. ( #209 )
2017-02-21 18:18:27 +02:00
Mark Dickinson
d9b3cdd137
bpo-29602: fix signed zero handling in complex constructor. ( #203 ) ( #206 )
...
* Fix incorrect handling of signed zeros for complex-related classes.
* Add Misc/NEWS entry.
(cherry picked from commit 112ec38c15
)
2017-02-20 21:59:30 +00:00
Nick Coghlan
0683d6889b
[3.6] bpo-29571: Use correct locale encoding in test_re ( #149 ) ( #153 )
...
``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:35 +05:30
Mariatta
0230e64d2c
bpo-28556: Various updates to typing ( #28 ) ( #77 )
...
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
(cherry picked from commit b692dc8475
)
2017-02-14 06:11:12 -08:00
Victor Stinner
2a35c939cc
Fix test_datetime on Windows
...
Issue #29100 : On Windows, datetime.datetime.fromtimestamp(min_ts) fails with an
OSError in test_timestamp_limits().
2017-02-10 12:37:21 +01:00
Victor Stinner
6f37e3645d
Fix test_datetime on system with 32-bit time_t
...
Issue #29100 : Catch OverflowError in the new test_timestamp_limits() test.
2017-02-10 11:45:14 +01:00
Victor Stinner
b67f096738
Fix datetime.fromtimestamp(): check bounds
...
Issue #29100 : Fix datetime.fromtimestamp() regression introduced in Python
3.6.0: check minimum and maximum years.
2017-02-10 10:34:02 +01:00
Steve Dower
2dfa6cb9ff
Issue #28164 : Improves test on Windows 7
2017-02-06 14:50:17 -08:00
Steve Dower
0c8ee60e91
Updates test_winconsoleio to better show the source of its issues.
2017-02-04 16:46:34 -08:00
Steve Dower
5f9193a6ed
Issue #29326 : Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
2017-02-04 15:19:29 -08:00
Steve Dower
722e3e2705
Issue #28164 : Correctly handle special console filenames (patch by Eryk Sun)
2017-02-04 15:07:46 -08:00
Steve Dower
eacee98679
Issue #29409 : Implement PEP 529 for io.FileIO (Patch by Eryk Sun)
2017-02-04 14:38:11 -08:00
Steve Dower
1add96f1b6
Issue #29416 : Prevent infinite loop in pathlib.Path.mkdir
2017-02-04 14:55:16 -08:00
Steve Dower
d3c4853b78
Issue #29416 : Prevent infinite loop in pathlib.Path.mkdir
2017-02-04 14:54:56 -08:00
Serhiy Storchaka
86e42376c2
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:55:40 +02:00