Commit graph

22623 commits

Author SHA1 Message Date
Serhiy Storchaka
be9cddb302 Issue #27942: String constants now interned recursively in tuples and frozensets. 2016-09-30 10:36:15 +03:00
Serhiy Storchaka
3738c2d8ae Issue #27942: String constants now interned recursively in tuples and frozensets. 2016-09-30 10:23:01 +03:00
Serhiy Storchaka
00a0fc1144 Issue #27942: String constants now interned recursively in tuples and frozensets. 2016-09-30 10:07:26 +03:00
Berker Peksag
408b78c06f Issue #27322: Set sys.path to a temp dir in test_compile_path 2016-09-28 17:38:53 +03:00
Berker Peksag
d39370ba41 Issue #28300: Merge from 3.5 2016-09-28 17:22:26 +03:00
Berker Peksag
c16387b17f Issue #28300: Fix typos, patch by Shlomi Fish 2016-09-28 17:21:52 +03:00
Serhiy Storchaka
e9e44484a5 Issue #28289: ImportError.__init__ now resets not specified attributes. 2016-09-28 07:53:32 +03:00
Berker Peksag
e075537432 Issue #27322: Merge from 3.6 2016-09-28 17:39:20 +03:00
Berker Peksag
50c972e3c3 Issue #28300: Merge from 3.6 2016-09-28 17:22:51 +03:00
Alexander Belopolsky
4e7b4e8c18 Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
2016-09-27 20:28:57 -04:00
Alexander Belopolsky
e3fd248c77 Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
2016-09-27 20:27:55 -04:00
Alexander Belopolsky
957b75699f Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
2016-09-27 20:26:39 -04:00
Guido van Rossum
39704fcddb Update typing.py and test_typing.py from upstream (https://github.com/python/typing) (merge 3.6->3.7) 2016-09-27 15:23:04 -07:00
Guido van Rossum
6703e042fa Update typing.py and test_typing.py from upstream (https://github.com/python/typing) (merge 3.5->3.6) 2016-09-27 15:22:40 -07:00
Guido van Rossum
4cefe74aef Update typing.py and test_typing.py from upstream (https://github.com/python/typing) 2016-09-27 15:20:12 -07:00
Berker Peksag
331e659047 Issue #28283: Merge from 3.6 2016-09-28 00:40:42 +03:00
Berker Peksag
49d2c389a3 Issue #28283: Merge from 3.5 2016-09-28 00:40:18 +03:00
Berker Peksag
63461bc384 Issue #28283: Remove flaky test test_sock_connect_sock_write_race 2016-09-28 00:39:36 +03:00
Serhiy Storchaka
a6f035ee8d Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.
2016-09-27 20:51:27 +03:00
Serhiy Storchaka
389ef9dcda Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.
2016-09-27 20:51:04 +03:00
Serhiy Storchaka
47dee11ba7 Issue #21578: Fixed misleading error message when ImportError called with
invalid keyword args.
2016-09-27 20:45:35 +03:00
Serhiy Storchaka
be43f2019f Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Original patch by John Leitch.
2016-09-27 20:24:19 +03:00
Serhiy Storchaka
a12e7842a5 Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Original patch by John Leitch.
2016-09-27 20:23:41 +03:00
Serhiy Storchaka
c0b7037d4f Issue #28275: Fixed possible use adter free in LZMADecompressor.decompress().
Original patch by John Leitch.
2016-09-27 20:14:26 +03:00
Raymond Hettinger
b87e8f7d0a merge 2016-09-26 21:46:26 -07:00
Raymond Hettinger
9016f2864a Issue #18844: Make the number of selections a keyword-only argument for random.choices(). 2016-09-26 21:45:57 -07:00
Berker Peksag
e2197d1312 Issue #20100: Simplify newPyEpoll_Object()
EPOLL_CLOEXEC is the only value that can be passed
to epoll_create1() and we are passing EPOLL_CLOEXEC
unconditionally since Python 3.4.
2016-09-26 23:30:41 +03:00
Serhiy Storchaka
16dc1256e1 Issue #11957: Restored re tests for passing count and maxsplit as positional
arguments.
2016-09-25 20:39:29 +03:00
Serhiy Storchaka
0eb60a7cb9 Issue #11957: Restored re tests for passing count and maxsplit as positional
arguments.
2016-09-25 20:39:04 +03:00
Serhiy Storchaka
b02f8fc3af Issue #11957: Restored re tests for passing count and maxsplit as positional
arguments.
2016-09-25 20:36:23 +03:00
Mark Dickinson
3992d6e5e1 Issue #28203: Merge from 3.6 2016-09-24 15:29:07 +01:00
Mark Dickinson
6997946ec4 Issue #28203: Merge from 3.5 2016-09-24 15:28:34 +01:00
Mark Dickinson
613f8e513c Issue #28203: Fix incorrect type in error message from complex(1.0, {2:3}). Patch by Soumya Sharma. 2016-09-24 15:26:36 +01:00
Christian Heimes
7713ef432b Finish GC code for SSLSession and increase test coverage 2016-09-24 10:48:16 +02:00
Christian Heimes
a5d0765990 Finish GC code for SSLSession and increase test coverage 2016-09-24 10:48:05 +02:00
Martin Panter
a59fa0bbe1 Issue #28221: Merge SSL test cleanup from 3.6 2016-09-24 03:03:36 +00:00
Martin Panter
22ecc4b36d Issue #28221: Merge SSL test cleanup from 3.5 into 3.6 2016-09-24 03:03:07 +00:00
Martin Panter
8609cda961 Issue #28221: Remove unused assignment from test_asyncore_server()
The later value of FOO is fine. The test just needs to verify that the server
converted it to lowercase.
2016-09-23 23:45:56 +00:00
Christian Heimes
826619b2fb Add test cases for internal SHA3 helpers 2016-09-23 11:32:40 +02:00
Christian Heimes
e370409cb1 Add test cases for internal SHA3 helpers 2016-09-23 11:32:30 +02:00
Victor Stinner
e7d3b0cf14 Merge 3.6 (issue #27829) 2016-09-23 11:16:32 +02:00
Victor Stinner
21c8c92422 Merge 3.5 (issue #27829) 2016-09-23 11:15:50 +02:00
Victor Stinner
bd2ffa5022 Issue #27829: regrtest -W displays stderr if env changed
regrtest -W hides output if a test pass, but also when env changed and so the
env changed warning is hidden. So it's hard to debug. With this change, stderr
is now always displayed when a test doesn't pass.
2016-09-23 11:13:53 +02:00
Serhiy Storchaka
f02f93ecca Issue #28086: Single var-positional argument of tuple subtype was passed
unscathed to the C-defined function.  Now it is converted to exact tuple.
2016-09-22 19:43:38 +03:00
Serhiy Storchaka
63dc548109 Issue #28086: Single var-positional argument of tuple subtype was passed
unscathed to the C-defined function.  Now it is converted to exact tuple.
2016-09-22 19:41:20 +03:00
Christian Heimes
ea8f2a6d09 Make Lib/test/ssltests.py more useful and faster for OpenSSL testing 2016-09-22 16:50:18 +02:00
Christian Heimes
5ed548715a Make Lib/test/ssltests.py more useful and faster for OpenSSL testing 2016-09-22 16:49:51 +02:00
Christian Heimes
55b196a1e4 Make Lib/test/ssltests.py more useful and faster for OpenSSL testing 2016-09-22 16:49:35 +02:00
Martin Panter
2e610df572 Merge socketserver fixes from 3.6 2016-09-22 10:34:50 +00:00
Martin Panter
21efc0bbf8 Issue #27348: Merge exception formatting fix from 3.6 2016-09-22 10:34:25 +00:00