Commit graph

24500 commits

Author SHA1 Message Date
Yury Selivanov
2051b84f44 Merge 3.5 heads (issue #24975) 2015-09-02 15:49:30 -04:00
Victor Stinner
2ec558739e Issue #23517: datetime.timedelta constructor now rounds microseconds to nearest
with ties going away from zero (ROUND_HALF_UP), as Python 2 and Python older
than 3.3, instead of rounding to nearest with ties going to nearest even
integer (ROUND_HALF_EVEN).
2015-09-02 19:16:07 +02:00
Yury Selivanov
1fa3652e59 Merge 3.5 (issue #24975) 2015-09-02 15:50:04 -04:00
Victor Stinner
177b8eb34f test_eintr: try to debug hang on FreeBSD 2015-09-02 17:19:04 +02:00
Victor Stinner
e801c36037 test_gdb: fix ResourceWarning if the test is interrupted 2015-09-02 15:46:00 +02:00
Victor Stinner
6dad8f8962 test_gdb: add debug info to investigate failure on "s390x SLES 3.x" buildbot 2015-09-02 15:44:22 +02:00
Victor Stinner
f08fea9ee8 Issue 24297: Fix test_symbol on Windows
Don't rely on end of line. Open files in text mode, not in binary mode.
2015-09-02 14:23:40 +02:00
Victor Stinner
8aad8d6ad3 Issue #23517: test_time, skip a test checking a corner case on floating point
rounding
2015-09-02 13:54:28 +02:00
Victor Stinner
ead144c19b test_time: add more tests on HALF_UP rounding mode 2015-09-02 11:05:32 +02:00
Victor Stinner
acea9f6208 Issue #23517: Reintroduce unit tests for the old PyTime API since it's still
used.
2015-09-02 10:39:40 +02:00
Victor Stinner
744742320f Issue #23517: Add "half up" rounding mode to the _PyTime API 2015-09-02 01:43:56 +02:00
Yury Selivanov
b3d531348c Issue #24975: Fix AST compilation for PEP 448 syntax. 2015-09-01 16:10:49 -04:00
Raymond Hettinger
7f9f27d767 merge 2015-08-30 09:17:02 -07:00
Raymond Hettinger
9157545c11 merge 2015-08-30 09:15:36 -07:00
Raymond Hettinger
7a3602e7cf Issue #24931: Resolve __dict__ conflict in namedtuple subclasses. 2015-08-30 09:13:48 -07:00
Raymond Hettinger
7a1a0bbbf1 merge 2015-08-26 08:09:50 -07:00
Raymond Hettinger
87674ec7d5 Issue #24913: Fix overrun error in deque.index(). 2015-08-26 08:08:38 -07:00
Robert Collins
e4d35dc8b6 Fix test_linecache change.
In non-UTF8 locales open() will have the wrong encoding for the test
data. We need to open the file via tokenize, to get a detected
encoding instead.
2015-08-20 10:48:46 +12:00
Raymond Hettinger
95801bbe4e Issue #24879: Teach pydoc to display named tuple fields in the order they were defined. 2015-08-18 22:25:16 -07:00
Robert Collins
631a35c71a Issue #24054: decouple linecache tests from inspect tests
Patch from David D. Riddle
2015-08-19 12:20:37 +12:00
Yury Selivanov
ab7cc7598a Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses.
Patch by Ethan Furman.
2015-08-18 14:30:15 -04:00
Yury Selivanov
aae9a1d789 Merge 3.5 (issue #23572) 2015-08-18 14:23:02 -04:00
Yury Selivanov
77a8cd65be Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses.
Patch by Ethan Furman.
2015-08-18 14:20:00 -04:00
Victor Stinner
7a0eadc6d5 (Merge 3.5) cgi.FieldStorage.read_multi ignores Content-Length
Issue #24764: cgi.FieldStorage.read_multi() now ignores the Content-Length
header in part headers. Patch written by Peter Landry and reviewed by Pierre
Quentel.
2015-08-18 10:23:48 -07:00
Victor Stinner
1e26dc7ef6 (Merge 3.4) cgi.FieldStorage.read_multi ignores Content-Length
Issue #24764: cgi.FieldStorage.read_multi() now ignores the Content-Length
header in part headers. Patch written by Peter Landry and reviewed by Pierre
Quentel.
2015-08-18 10:23:16 -07:00
Victor Stinner
6579459d4b cgi.FieldStorage.read_multi ignores Content-Length
Issue #24764: cgi.FieldStorage.read_multi() now ignores the Content-Length
header in part headers. Patch written by Peter Landry and reviewed by Pierre
Quentel.
2015-08-18 10:21:10 -07:00
Yury Selivanov
7ca6c55a4e Issue #24867: Fix asyncio.Task.get_stack() for 'async def' coroutines 2015-08-17 14:46:51 -04:00
Raymond Hettinger
47d159f522 Issue #24379: Add operator.subscript() as a convenience for building slices. 2015-08-16 19:43:34 -07:00
Raymond Hettinger
bb562a9a56 Add error information to a failing test to help diagnose a buildbot failure. 2015-08-16 17:08:48 -07:00
Raymond Hettinger
1cadf769b3 Improve comment 2015-08-15 14:47:27 -07:00
Raymond Hettinger
a166ce561c Add more tests for pickling itertools.cycle 2015-08-15 14:45:49 -07:00
Raymond Hettinger
79c878d5f2 Fix crash in itertools.cycle.__setstate__() caused by lack of type checking.
Will backport after the 3.6 release is done.
2015-08-15 13:51:59 -07:00
Yury Selivanov
14f7b8bfb2 Merge 3.5 (issue #24867) 2015-08-14 15:35:14 -04:00
Yury Selivanov
bb78adeece Merge 3.4 (Issue #24867) 2015-08-14 15:32:37 -04:00
Yury Selivanov
233983380d Issue #24867: Fix Task.get_stack() for 'async def' coroutines 2015-08-14 15:30:59 -04:00
Brett Cannon
d868376288 Merge from 3.5 for issue #24492 2015-08-14 11:09:56 -07:00
Brett Cannon
7c97a05618 Merge from 3.5.0 for issue #24492 2015-08-14 11:06:43 -07:00
Robert Collins
6908265812 Issue #21159: Improve message in configparser.InterpolationMissingOptionError.
Patch from Łukasz Langa.
2015-08-14 20:16:14 +12:00
Robert Collins
f7a92673ab Issue #21159: Improve message in configparser.InterpolationMissingOptionError.
Patch from Łukasz Langa.
2015-08-14 11:47:41 +12:00
Robert Collins
ac37ba0742 Issue #21159: Improve message in configparser.InterpolationMissingOptionError.
Patch from Łukasz Langa.
2015-08-14 11:11:35 +12:00
Brett Cannon
3008bc0f4a Issue #24492: make sure that `from ... import ... raises an
ImportError if __name__ is not defined on a package.

Thanks to Armin Rigo for the bug report and diagnosing the cause.
2015-08-11 18:01:31 -07:00
Robert Collins
df395991f6 Issue #9232: Support trailing commas in function declarations.
For example, "def f(*, a = 3,): pass" is now legal.

Patch from Mark Dickinson.
2015-08-12 08:00:06 +12:00
Yury Selivanov
31978d9ff4 Merge 3.5 (issues #24835, #24763) 2015-08-09 18:22:11 -04:00
Yury Selivanov
131426ebe3 Merge 3.4 (issues #24835, #24763) 2015-08-09 18:21:58 -04:00
Yury Selivanov
9632ea2f26 Issue #24763: Fix asyncio test on Windows (fix reverted change)
See also issue #24835
2015-08-09 18:21:25 -04:00
Robert Collins
dfa95c9a8f Issue #20059: urllib.parse raises ValueError on all invalid ports.
Patch by Martin Panter.
2015-08-10 09:53:30 +12:00
Raymond Hettinger
455b5092a1 Add more tests of hash effectiveness. 2015-08-09 00:35:00 -07:00
Zachary Ware
7c4a6f8bd0 Merge 3.5 2015-08-08 22:05:05 -05:00
Zachary Ware
83ee5a315f Merge 3.4 2015-08-08 22:03:43 -05:00
Zachary Ware
9a47ed8839 regrtest: the 'bad' and 'environment_changed' sets of tests don't intersect anymore 2015-08-08 22:03:27 -05:00