Commit graph

40574 commits

Author SHA1 Message Date
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
Serhiy Storchaka
9204a20452 Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name.  Patch by Xiang Zhang.
2016-09-27 00:16:25 +03:00
Serhiy Storchaka
22805ca54e Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name.  Patch by Xiang Zhang.
2016-09-27 00:14:24 +03:00
Serhiy Storchaka
407ac47690 Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name.  Patch by Xiang Zhang.
2016-09-27 00:10:03 +03: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
Berker Peksag
37dd202f14 Issue #18893: Merge from 3.6 2016-09-26 23:07:58 +03:00
Berker Peksag
11179b2ed7 Issue #18893: Merge from 3.5 2016-09-26 23:07:38 +03:00
Berker Peksag
8b6b50814e Issue #18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py
Patch by Madison May.
2016-09-26 23:06:32 +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
Serhiy Storchaka
06c6eeec51 Issue #27611: Fixed support of default root window in the tkinter.tix module.
Added the master parameter in the DisplayStyle constructor.
2016-09-25 16:54:17 +03:00
Serhiy Storchaka
1aca3899fb Issue #27611: Fixed support of default root window in the tkinter.tix module.
Added the master parameter in the DisplayStyle constructor.
2016-09-25 16:52:13 +03:00
Serhiy Storchaka
e6f0199c19 Issue #27611: Fixed support of default root window in the tkinter.tix module. 2016-09-25 16:46:10 +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
Martin Panter
3217b1243e Merge socketserver fixes from 3.5 into 3.6 2016-09-22 10:33:51 +00:00
Martin Panter
f3b0639417 Issue #27348: Merge exception formatting fix from 3.5 into 3.6 2016-09-22 10:33:21 +00:00
Martin Panter
463ef2b3cf Fix references to Python 3’s socketserver (lowercase) module 2016-09-22 09:37:56 +00:00
Martin Panter
bb8b1cb6af Issue #27348: Restore “Exception: None” formatting in traceback module
This fixes a regression caused by revision 73afda5a4e4c. Also reverts the
decimal test workaround added in revision 5f3dd0a2b1ab.

Remove test_without_exception(). According to revision ecaafc32c500, this was
added in Python 2 so that print_exc() would output “None” when called with no
exception set. However print_exc() never worked like this in Python 3, and
the use case is not documented.

Restore TracebackCases class name (instead of SyntaxTracebackCases), because
the class also tests other exceptions.
2016-09-22 09:37:39 +00:00
Serhiy Storchaka
b0ba1974a4 Extend the test to lower pickle protocols. 2016-09-22 11:43:46 +03:00
Serhiy Storchaka
e3d504090c Extend the test to lower pickle protocols. 2016-09-22 11:42:38 +03:00