Serhiy Storchaka
fc632e3912
Merge with 3.5.
2015-10-06 18:52:52 +03:00
Serhiy Storchaka
d7e60b1519
Merge heads
2015-10-06 18:40:09 +03:00
Serhiy Storchaka
85a0e5f498
Merge heads
2015-10-06 18:39:58 +03:00
Guido van Rossum
8ae2f0205c
Issue #23972 : Fix tests for Windows and Debian. (Merge 3.5->3.6)
2015-10-06 08:25:21 -07:00
Serhiy Storchaka
4ff2faf2d6
Issue #25317 : Converted doctests in test_tokenize to unittests.
...
Made test_tokenize discoverable.
2015-10-06 18:24:46 +03:00
Guido van Rossum
609081186d
Issue #23972 : Fix tests for Windows and Debian. (Merge 3.4->3.5)
2015-10-06 08:24:44 -07:00
Guido van Rossum
36bbd0f239
Issue #23972 : Fix tests for Windows and Debian.
2015-10-06 08:24:10 -07:00
Serhiy Storchaka
6f5175de15
Issue #25317 : Converted doctests in test_tokenize to unittests.
...
Made test_tokenize discoverable.
2015-10-06 18:23:12 +03:00
Serhiy Storchaka
5f6fa82617
Issue #25317 : Converted doctests in test_tokenize to unittests.
...
Made test_tokenize discoverable.
2015-10-06 18:16:28 +03:00
Benjamin Peterson
1ba1ca0456
merge 3.5 ( #25319 )
2015-10-05 22:01:29 -07:00
Benjamin Peterson
72181b2f53
merge 3.4 ( #25319 )
2015-10-05 22:00:33 -07:00
Benjamin Peterson
15982aad2b
reinitialize an Event's Condition with a regular lock ( closes #25319 )
2015-10-05 21:56:22 -07:00
Guido van Rossum
8ab4169f5a
Docs and one small improvement for issue #25304 , by Vincent Michel. (Merge 3.5->3.6.)
2015-10-05 16:26:00 -07:00
Guido van Rossum
5db034acfa
Docs and one small improvement for issue #25304 , by Vincent Michel. (Merge 3.4->3.5.)
2015-10-05 16:23:13 -07:00
Guido van Rossum
601953b679
Docs and one small improvement for issue #25304 , by Vincent Michel.
2015-10-05 16:20:00 -07:00
Guido van Rossum
3074c134a9
Issue #23972 : updates to asyncio datagram API. By Chris Laws. (Merge 3.5->3.6.)
2015-10-05 09:29:32 -07:00
Guido van Rossum
eda1955d82
Issue #23972 : updates to asyncio datagram API. By Chris Laws. (Merge 3.4->3.5.)
2015-10-05 09:19:11 -07:00
Guido van Rossum
b9bf913ab3
Issue #23972 : updates to asyncio datagram API. By Chris Laws.
2015-10-05 09:15:28 -07:00
Victor Stinner
1d65d9192d
Issue #25301 : The UTF-8 decoder is now up to 15 times as fast for error
...
handlers: ``ignore``, ``replace`` and ``surrogateescape``.
2015-10-05 13:43:50 +02:00
Victor Stinner
20d2118248
Issue #25306 : Try to fix test_huntrleaks_fd_leak() on Windows
...
Issue #25306 : Disable popup and logs to stderr on assertion failures in MSCRT.
2015-10-03 21:40:21 +02:00
Victor Stinner
33c30131db
Issue #25306 : Skip test_huntrleaks_fd_leak() of test_regrtest until the bug is
...
fixed.
2015-10-03 21:20:41 +02:00
Guido van Rossum
5dad1ff8f8
Issue #25304 : Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 3.5->3.6.)
2015-10-03 08:35:28 -07:00
Guido van Rossum
0d9bef927b
Issue #25304 : Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 3.4->3.5.)
2015-10-03 08:34:34 -07:00
Guido van Rossum
841d9ee41a
Issue #25304 : Add asyncio.run_coroutine_threadsafe(). By Vincent Michel.
2015-10-03 08:31:42 -07:00
Martin Panter
5e84d037bb
Issues #25232 , #24657 : Merge two CGI server fixes from 3.5
2015-10-03 06:43:19 +00:00
Martin Panter
eb1fee9353
Issues #25232 , #24657 : Use new enum status to match rest of tests
2015-10-03 06:07:22 +00:00
Martin Panter
56b76d25dd
Issues #25232 , #24657 : Merge two CGI server fixes from 3.4 into 3.5
2015-10-03 06:03:25 +00:00
Martin Panter
cb29e8c0e5
Issue #24657 : Prevent CGIRequestHandler from collapsing the URL query
...
Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc
string.
2015-10-03 05:55:46 +00:00
Martin Panter
a02e18a43f
Issue #25232 : Fix CGIRequestHandler's splitting of URL query
...
Patch from Xiang Zhang.
2015-10-03 05:38:07 +00:00
Victor Stinner
46d75353c5
Issue #18174 : Fix test_regrtest when Python is compiled in release mode
2015-10-03 02:21:35 +02:00
Brett Cannon
11faa21843
Merge from 3.5 for issue #25188 .
2015-10-02 16:20:49 -07:00
Brett Cannon
be7c1638e2
Issue #25188 : Add a -P/--pgo flag to regrtest to silence error output.
...
Since PGO building doesn't care about test failures, silence them when
running the test suite for performance reasons. Initial patch by
Alecsandru Patrascu of Intel.
2015-10-02 16:16:44 -07:00
Victor Stinner
5f9d3acc5e
Issue #22806 : Add `python -m test --list-tests` command to list tests.
2015-10-03 00:21:12 +02:00
Victor Stinner
076fc872bc
Issue #18174 : "python -m test --huntrleaks ..." now also checks for leak of
...
file descriptors. Patch written by Richard Oudkerk.
2015-10-03 00:20:56 +02:00
Yury Selivanov
d763909885
asyncio: Make ensure_future() accept all kinds of awaitables. (Merge 3.5)
2015-10-02 15:09:51 -04:00
Yury Selivanov
43d71e2512
asyncio: Make ensure_future() accept all kinds of awaitables.
2015-10-02 15:05:59 -04:00
Yury Selivanov
620279b9ac
asyncio: ensure_future() now understands awaitables
2015-10-02 15:00:19 -04:00
Serhiy Storchaka
29e68edbf4
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
3. In some circumstances the '\xfd' character was produced instead of the
replacement character '\ufffd' (due to a bug in _PyUnicodeWriter).
2015-10-02 13:14:03 +03:00
Serhiy Storchaka
58c8f2bb6d
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
3. In some circumstances the '\xfd' character was produced instead of the
replacement character '\ufffd' (due to a bug in _PyUnicodeWriter).
2015-10-02 13:13:14 +03:00
Serhiy Storchaka
28b21e50c8
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
2015-10-02 13:07:28 +03:00
Victor Stinner
01ada3996b
Issue #25267 : The UTF-8 encoder is now up to 75 times as fast for error
...
handlers: ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``.
Patch co-written with Serhiy Storchaka.
2015-10-01 21:54:51 +02:00
Vinay Sajip
14b1b486ca
Fixes #25097 : Merged fix from 3.5.
2015-10-01 20:39:30 +01:00
Vinay Sajip
d5963e615d
Fixes #25097 : Merged fi from 3.4.
2015-10-01 20:38:53 +01:00
Vinay Sajip
223349cfb8
Fixes #25097 : Windows test is skipped if there are insufficient privileges, rather than failing.
2015-10-01 20:37:54 +01:00
Victor Stinner
98f223dfa0
Issue #25277 : Set a timeout of 10 minutes in test_eintr using faulthandler to
...
try to debug a hang on the FreeBSD 9 buildbot.
Run also eintr_tester.py with python "-u" command line option to try to get the
full output on hang/crash.
2015-10-01 13:16:43 +02:00
Victor Stinner
bae2d6203f
Issue #25003 : On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
...
function instead of the getentropy() function. The getentropy() function is
blocking to generate very good quality entropy, os.urandom() doesn't need such
high-quality entropy.
2015-10-01 09:47:30 +02:00
Victor Stinner
4241bcd4e1
(Merge 3.5) Issue #25274 : test_recursionlimit_recovery() of test_sys now checks
...
sys.gettrace() when the test is executed, not when the module is loaded.
sys.settrace() may be after after the test is loaded.
2015-10-01 08:56:54 +02:00
Victor Stinner
87bddbac9d
(Merge 3.4) Issue #25274 : test_recursionlimit_recovery() of test_sys now checks
...
sys.gettrace() when the test is executed, not when the module is loaded.
sys.settrace() may be after after the test is loaded.
2015-10-01 08:56:27 +02:00
Victor Stinner
3f18f10f39
Issue #25274 : test_recursionlimit_recovery() of test_sys now checks
...
sys.gettrace() when the test is executed, not when the module is loaded.
sys.settrace() may be after after the test is loaded.
2015-10-01 08:55:33 +02:00
Victor Stinner
a53a818c3c
Fix regrtest --coverage on Windows
...
Issue #25260 : Fix ``python -m test --coverage`` on Windows. Remove the list of
ignored directories.
2015-10-01 00:53:09 +02:00