Ethan Furman
65a5a47d79
issue23591: add docs; code cleanup; more tests
2016-09-01 23:55:19 -07:00
Raymond Hettinger
112835cb3e
Merge
2016-08-31 15:01:28 -07:00
Raymond Hettinger
c7bab7cbf5
Issue #27706 : Fix regression in random.seed(somestr, version=1)
2016-08-31 15:01:08 -07:00
Guido van Rossum
898ac56fc2
Merge asyncio from 3.5
2016-08-31 09:47:08 -07:00
Guido van Rossum
8b7918a7e2
Don't select for read on character devices in _UnixWritePipeTransport.
...
Upstream https://github.com/python/asyncio/pull/374 by Ron Frederick.
2016-08-31 09:40:18 -07:00
Guido van Rossum
7309421502
Issue #27907 : variable rename. (Ville Skyttä) (Merge 3.5->3.6)
2016-08-31 09:09:04 -07:00
Guido van Rossum
09c22adadf
Issue #27907 : variable rename. (Ville Skyttä)
2016-08-31 09:08:41 -07:00
Ethan Furman
ee47e5cf8a
issue23591: add Flags, IntFlags, and tests
2016-08-31 00:12:15 -07:00
Raymond Hettinger
8ca35707c0
Issue #27895 : Strengthen the dict reader tests.
2016-08-30 12:57:26 -07:00
Raymond Hettinger
43ca452887
Issue #27842 : The csv.DictReader now returns rows of type OrderedDict.
2016-08-30 12:35:50 -07:00
Raymond Hettinger
15f44ab043
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
2016-08-30 10:47:49 -07:00
Zachary Ware
613debcf0a
Merge with 3.5
2016-08-30 10:03:32 -05:00
Zachary Ware
5cf1c6cb62
Skip test_tools.test_i18n when pygettext.py is missing
2016-08-30 10:00:26 -05:00
Mark Dickinson
82a95277b8
Issue #27870 : A left shift of zero by a large integer no longer attempts to allocate large amounts of memory.
2016-08-29 19:27:06 +01:00
Mark Dickinson
84e6311dee
Issue 23229: add cmath.inf, cmath.nan, cmath.infj and cmath.nanj.
2016-08-29 13:56:58 +01:00
Berker Peksag
d0f5bab21b
Issue #26027 : Fix test_path_t_converter on Windows
2016-08-27 21:26:35 +03:00
Brett Cannon
3ce2fd484b
Don't test for path-like bytes paths on Windows
2016-08-27 09:42:40 -07:00
Martin Panter
1b6c6da85d
Issue #27506 : Support bytes/bytearray.translate() delete as keyword argument
...
Patch by Xiang Zhang.
2016-08-27 08:35:02 +00:00
Martin Panter
aac9b71632
Issue #19884 : Merge Readline updates from 3.5
2016-08-27 04:03:26 +00:00
Martin Panter
c427b8d517
Issue #19884 : Avoid spurious output on OS X with Gnu Readline
...
Also adjust the test condition, because enable-meta-key was only added in
6.1, not 6.0.
2016-08-27 03:23:11 +00:00
Martin Panter
ef91bb2660
Issue #12319 : Always send file request bodies using chunked encoding
...
The previous attempt to determine the file’s Content-Length gave a false
positive for pipes on Windows.
Also, drop the special case for sending zero-length iterable bodies.
2016-08-27 01:39:26 +00:00
Brett Cannon
8f96a30630
Issue #26027 : Don't test for bytearray in path_t as that's now
...
deprecated.
2016-08-26 19:30:11 -07:00
Brett Cannon
3f9183b5ac
Issue #26027 , #27524 : Add PEP 519/__fspath__() support to os and
...
os.path.
Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
2016-08-26 14:44:48 -07:00
Raymond Hettinger
f74c33ad5c
Merge
2016-08-25 21:12:16 -07:00
Raymond Hettinger
7ea386e56e
Issue 19504: Change "customise" to "customize" American spelling.
2016-08-25 21:11:50 -07:00
Berker Peksag
208536132b
Fix typo in test name
...
Noticed by Xiang Zhang.
2016-08-25 01:13:34 +03:00
Martin Panter
3c0d0baf2b
Issue #12319 : Support for chunked encoding of HTTP request bodies
...
When the body object is a file, its size is no longer determined with
fstat(), since that can report the wrong result (e.g. reading from a pipe).
Instead, determine the size using seek(), or fall back to chunked encoding
for unseekable files.
Also, change the logic for detecting text files to check for TextIOBase
inheritance, rather than inspecting the “mode” attribute, which may not
exist (e.g. BytesIO and StringIO). The Content-Length for text files is no
longer determined ahead of time, because the original logic could have been
wrong depending on the codec and newline translation settings.
Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me.
2016-08-24 06:33:33 +00:00
Steven D'Aprano
a790fe7ff8
Remove expected failure from test of _product internal function.
2016-08-24 13:54:31 +10:00
Steven D'Aprano
d6ea3011c5
Remove support for nth root of negative numbers with odd powers.
...
Although nth roots of negative numbers are real for odd n, the
statistics module doesn't make use of this. Remove support for
negative roots from the private _nth_root function, which
simplifies the test suite.
2016-08-24 12:48:12 +10:00
Guido van Rossum
efa798d1ba
A new version of typing.py from https://github.com/python/typing .
2016-08-23 11:01:50 -07:00
Mark Dickinson
f428521481
Backed out changeset 1017215f5492
2016-08-23 20:00:49 +01:00
Alexander Belopolsky
7c7c14696b
Issue #27834 : Avoid overflow error in ZoneInfo.invert().
2016-08-23 14:44:51 -04:00
Terry Jan Reedy
ffcb022738
Issue #27787 : No longer call deleted test_main().
2016-08-23 14:20:37 -04:00
Guido van Rossum
1f5beb7a6e
A new version of typing.py from https://github.com/python/typing . (Merge 3.5->3.6)
2016-08-23 11:06:30 -07:00
Guido van Rossum
f0666949fd
Issue 27598: Add Collections to collections.abc.
...
Patch by Ivan Levkivskyi, docs by Neil Girdhar.
2016-08-23 10:47:07 -07:00
Steven D'Aprano
9ff4fb3619
Automated merge with ssh://hg.python.org/cpython
2016-08-24 02:40:31 +10:00
Mark Dickinson
4fe9f163af
Issue #26040 (part 1): add new testcases to cmath_testcases.txt. Thanks Jeff Allen.
2016-08-23 17:33:54 +01:00
Steven D'Aprano
6877ed3560
Issue #27573 make the exit message configurable.
2016-08-24 01:42:15 +10:00
Mark Dickinson
7caf908c64
Issue #27832 : Make _normalize parameter to Fraction.__init__ keyword-only.
2016-08-23 16:16:52 +01:00
Martin Panter
1fa6915427
Issue #27787 : Remove test_main() and hard-coded list of test classes
...
The @reap_threads decorator made the test wait (for up to 1 s) until
background threads have finished. Calling join() with a timeout should be
equivalent.
2016-08-23 09:01:43 +00:00
Vinay Sajip
9ae505041f
Issue #12713 : reverted fix pending further discussion.
2016-08-23 08:43:16 +01:00
Victor Stinner
ad7b6c3720
Issue #27829 : libregrtest.save_env: flush stderr
...
Use flush=True to try to get a warning which is missing in buildbots.
Use also f-string to make the code shorter.
2016-08-22 14:29:54 +02:00
Victor Stinner
ab98367747
Cleanup libregrtest
...
* main.py: remove unused import
* runtest: simplify runtest_inner() parameters, reuse ns parameter
2016-08-22 14:28:52 +02:00
Mark Dickinson
b820d7f631
Issue #27792 : force int return type for modulo operations involving bools.
2016-08-22 12:24:46 +01:00
Mark Dickinson
0add84b9b8
Issue #27539 : Merge from 3.5.
2016-08-22 10:56:06 +01:00
Mark Dickinson
844796530a
Issue #27539 : Fix unnormalised Fraction.__pow__ result for negative exponent and base. Thanks Vedran Čačić.
2016-08-22 10:50:53 +01:00
Serhiy Storchaka
54cd1969ea
Issue #26984 : int() now always returns an instance of exact int.
2016-08-21 20:03:08 +03:00
Nick Coghlan
cbcd221de4
Merge #27782 fix from 3.5
2016-08-21 17:43:58 +10:00
Nick Coghlan
8682f578c1
Issue #27782 : Fix m_methods handling in multiphase init
...
Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions
to instances of non-module types returned from ``Py_create_mod``.
Patch by Xiang Zhang.
2016-08-21 17:41:56 +10:00
Martin Panter
f9ed528faf
Issue #27487 : Merge runpy warning from 3.5
2016-08-21 05:07:35 +00:00