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
Victor Stinner
9a14214aee
Issue #25220 : Fix "-m test --forever"
...
* Fix "-m test --forever": replace _test_forever() with self._test_forever()
* Add unit test for --forever
* Add unit test for a failing test
* Fix also some pyflakes warnings in libregrtest
2015-09-30 13:51:17 +02:00
Victor Stinner
17f9716676
Issue #25220 , libregrtest: more verbose output for -jN
...
When the -jN command line option is used, display tests running since at least
30 seconds every minute.
2015-09-30 03:05:43 +02:00
Victor Stinner
b40843546b
Issue #25220 , libregrtest: Cleanup
...
No need to support.verbose in Regrtest.run_tests(), it's always set in
runtest().
2015-09-30 02:39:22 +02:00
Victor Stinner
6f20a2e01f
Issue #25220 , libregrtest: Pass directly ns to runtest()
...
* Remove runtest_ns(): pass directly ns to runtest().
* Create also Regrtest.rerun_failed_tests() method.
* Inline again Regrtest.run_test(): it's no more justified to have a method
2015-09-30 02:32:11 +02:00
Victor Stinner
a204502dbf
Issue #25220 , libregrtest: Set support.use_resources in setup_tests()
...
* Rename setup_python() to setup_tests()
* Remove use_resources parameter of runtest()
2015-09-30 02:17:28 +02:00
Victor Stinner
00b8f9bb9e
Issue #25274 : Workaround test_sys crash just to keep buildbots usable
2015-09-30 02:02:49 +02:00
Victor Stinner
ecef622fec
Issue #25220 , libregrtest: Call setup_python(ns) in the slaves
...
Slaves (child processes running tests for regrtest -jN) now inherit
--memlimit/-M, --threshold/-t and --nowindows/-n options.
* -M, -t and -n are now supported with -jN
* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
process.
2015-09-30 01:39:28 +02:00
Victor Stinner
8bb19f094b
Issue #25220 , libregrtest: Add runtest_ns() function
...
* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
process.
2015-09-30 01:32:39 +02:00
Victor Stinner
234cbef39f
Issue #25220 , libregrtest: Move setup_python() to a new submodule
2015-09-30 01:13:53 +02:00
Victor Stinner
c7eab0528c
Issue #25220 , libregrtest: Cleanup setup code
2015-09-30 00:59:35 +02:00
Victor Stinner
f33536c430
Issue #25220 : Use print(flush=True) in libregrtest
2015-09-30 00:48:27 +02:00
Victor Stinner
76f756d934
Issue #25220 : Enhance regrtest -jN
...
Running the Python test suite with -jN now:
- Display the duration of tests which took longer than 30 seconds
- Display the tests currently running since at least 30 seconds
- Display the tests we are waiting for when the test suite is interrupted
Clenaup also run_test_in_subprocess() code.
2015-09-30 00:33:29 +02:00
Victor Stinner
02319804ea
Don't strip refcount in libregrtest/runtest_mp.py
...
Python doesn't display the refcount anymore by default. It only displays it
when -X showrefcount command line option is used, which is not the case here.
regrtest can be run with -X showrefcount, the option is not inherited by child
processes.
2015-09-29 23:52:33 +02:00
Victor Stinner
86e8c31b8d
Issue #25220 , libregrtest: Remove unused import
2015-09-29 23:50:19 +02:00
Victor Stinner
6448b8041a
Issue #25220 : truncate some long lines in libregrtest/*.py
2015-09-29 23:43:33 +02:00
Victor Stinner
37554525aa
Issue #25220 : regrtest setups Python after parsing command line options
2015-09-29 23:37:14 +02:00
Victor Stinner
bd1a72c455
Issue #25220 : Enhance regrtest --coverage
...
Add a new Regrtest.run_test() method to ensure that --coverage pass the same
options to the runtest() function.
2015-09-29 23:36:27 +02:00
Victor Stinner
56e05dd0b0
Issue #25220 : Create libregrtest/runtest_mp.py
...
Move the code to run tests in multiple processes using threading and subprocess
to a new submodule.
Move also slave_runner() (renamed to run_tests_slave()) and
run_test_in_subprocess() (renamed to run_tests_in_subprocess()) there.
2015-09-29 23:15:38 +02:00
Serhiy Storchaka
f1c780870a
Issue #22958 : Constructor and update method of weakref.WeakValueDictionary
...
now accept the self and the dict keyword arguments.
2015-09-29 23:52:42 +03:00
Serhiy Storchaka
b5102e3550
Issue #22958 : Constructor and update method of weakref.WeakValueDictionary
...
now accept the self and the dict keyword arguments.
2015-09-29 23:52:09 +03:00
Victor Stinner
dad20e4876
Issue #25220 : Split the huge main() function of libregrtest.main into a class
...
with attributes and methods.
The --threshold command line option is now ignored if the gc module is missing.
* Convert main() variables to Regrtest attributes, document some attributes
* Convert accumulate_result() function to a method
* Create setup_python() function and setup_regrtest() method.
* Import gc at top level
* Move resource.setrlimit() and the code to make the module paths absolute into
the new setup_python() function. So this code is no more executed when the
module is imported, only when main() is executed. We have a better control on
when the setup is done.
* Move textwrap import from printlist() to the top level.
* Some other minor cleanup.
2015-09-29 22:48:52 +02:00
Serhiy Storchaka
b27232949d
Issue #22958 : Constructor and update method of weakref.WeakValueDictionary
...
now accept the self and the dict keyword arguments.
2015-09-29 23:53:25 +03:00
Serhiy Storchaka
5527cf119d
Issue #22609 : Constructor of collections.UserDict now accepts the self keyword
...
argument.
2015-09-29 23:38:34 +03:00
Serhiy Storchaka
f4ee1c23e8
Issue #22609 : Constructor of collections.UserDict now accepts the self keyword
...
argument.
2015-09-29 23:37:09 +03:00
Serhiy Storchaka
68f5ef226e
Issue #22609 : Constructor of collections.UserDict now accepts the self keyword
...
argument.
2015-09-29 23:36:06 +03:00
Serhiy Storchaka
87b93fe36f
Issue #25111 : Fixed comparison of traceback.FrameSummary.
2015-09-29 22:34:16 +03:00
Serhiy Storchaka
3066fc41d1
Issue #25111 : Fixed comparison of traceback.FrameSummary.
2015-09-29 22:33:36 +03:00
Serhiy Storchaka
11c715f12e
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
...
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
2015-09-29 22:13:01 +03:00
Serhiy Storchaka
525faaeffc
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
...
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
2015-09-29 22:12:29 +03:00
Serhiy Storchaka
e060619d4b
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
...
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
2015-09-29 22:10:07 +03:00
Guido van Rossum
a6b1031b76
Also rewrote the guts of asyncio.Semaphore (patch by manipopopo). (Merge 3.5->3.6.)
2015-09-29 12:01:55 -07:00
Guido van Rossum
28d982dfc5
Also rewrote the guts of asyncio.Semaphore (patch by manipopopo). (Merge 3.4->3.5.)
2015-09-29 12:00:01 -07:00
Guido van Rossum
d455a50773
Also rewrote the guts of asyncio.Semaphore (patch by manipopopo).
2015-09-29 11:54:45 -07:00
Andrew Svetlov
11adfb9990
Merge 3.5 -> default
2015-09-29 18:38:22 +03:00
Andrew Svetlov
e4be3c2597
Merge 3.4 -> 3.5
2015-09-29 18:36:44 +03:00
Andrew Svetlov
d94c1b92ed
Fix StreamReader.__repr__
2015-09-29 18:36:00 +03:00
Eric V. Smith
6dcada3bcf
Issue #25034 : Merge from 3.5.
2015-09-29 10:30:47 -04:00
Eric V. Smith
ad4003c7fb
Issue #25034 : Merge from 3.4.
2015-09-29 10:30:04 -04:00
Eric V. Smith
85976b14dd
Fixed issue #25034 : Fix string.Formatter problem with auto-numbering
...
and nested format_specs. Patch by Anthon van der Neut.
2015-09-29 10:27:38 -04:00
Serhiy Storchaka
2fbcd2a057
Added additional unpickling tests.
2015-09-29 15:51:02 +03:00
Serhiy Storchaka
cb764960c9
Added additional unpickling tests.
2015-09-29 15:50:45 +03:00
Serhiy Storchaka
b8b951f6ee
Added additional unpickling tests.
2015-09-29 15:49:58 +03:00
Serhiy Storchaka
8ebcfd6779
Moved unpickling tests with prepickled data to separate class.
2015-09-29 15:35:19 +03:00
Serhiy Storchaka
104de66b76
Moved unpickling tests with prepickled data to separate class.
2015-09-29 15:34:53 +03:00
Serhiy Storchaka
c6b54b45ea
Moved unpickling tests with prepickled data to separate class.
2015-09-29 15:33:24 +03:00
Victor Stinner
4277134035
Issue #25220 : Add test for --wait in test_regrtest
...
Replace script_helper.assert_python_ok() with subprocess.run().
2015-09-29 14:17:09 +02:00
Victor Stinner
feabaed054
Oops, revert unwanted change, sorry
2015-09-29 14:02:35 +02:00
Victor Stinner
3f7468507a
test
2015-09-29 13:47:15 +02:00
Victor Stinner
c3713e9706
Optimize ascii/latin1+surrogateescape encoders
...
Issue #25227 : Optimize ASCII and latin1 encoders with the ``surrogateescape``
error handler: the encoders are now up to 3 times as fast.
Initial patch written by Serhiy Storchaka.
2015-09-29 12:32:13 +02:00
Victor Stinner
e143c1f94f
Fix test_regrtest.test_tools_buildbot_test()
...
Issue #25220 : Fix test_regrtest.test_tools_buildbot_test() on release build (on
Windows), pass "+d" option to test.bat.
2015-09-29 01:02:37 +02:00
Victor Stinner
6b415101a2
Issue #25220 : Add functional tests to test_regrtest
...
* test all available ways to run the Python test suite
* test many regrtest options: --slow, --coverage, -r, -u, etc.
Note: python -m test --coverage doesn't work on Windows.
2015-09-28 23:16:17 +02:00
Guido van Rossum
174d059248
Issue #25233 : Rewrite the guts of Queue to be more understandable and correct. (Merge 3.5->default.)
2015-09-28 13:35:54 -07:00
Guido van Rossum
d2f184652c
Issue #25233 : Rewrite the guts of Queue to be more understandable and correct. (Merge 3.4->3.5.)
2015-09-28 07:44:49 -07:00
Guido van Rossum
99f96c5451
Issue #25233 : Rewrite the guts of Queue to be more understandable and correct.
2015-09-28 07:42:34 -07:00
Victor Stinner
ff6ee25102
Issue #25122 : Remove verbose mode of test_eintr
...
"./python -m test -W test_eintr" wrote Lib/test/eintrdata/eintr_tester.py
output to stdout which was not expected.
Since test_eintr doesn't hang anymore, remove the verbose mode instead.
2015-09-28 15:04:11 +02:00
Berker Peksag
2cf2aacdcd
Issue #25249 : Remove unneeded mkstemp helper in test_subprocess
...
The helper was added in 76641824cf05 11 years ago and it can be
removed now since all supported Python versions have tempfile.mkstemp().
Patch by Nir Soffer.
2015-09-28 13:34:17 +03:00
Berker Peksag
636b83fdc5
Issue #25249 : Remove unneeded mkstemp helper in test_subprocess
...
The helper was added in 76641824cf05 11 years ago and it can be
removed now since all supported Python versions have tempfile.mkstemp().
Patch by Nir Soffer.
2015-09-28 13:33:43 +03:00
Berker Peksag
16a1f28194
Issue #25249 : Remove unneeded mkstemp helper in test_subprocess
...
The helper was added in 76641824cf05 11 years ago and it can be
removed now since all supported Python versions have tempfile.mkstemp().
Patch by Nir Soffer.
2015-09-28 13:33:14 +03:00
Alexander Belopolsky
365ba8f6c1
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 22:32:15 -04:00
Alexander Belopolsky
edc6885b3f
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 22:31:45 -04:00
Alexander Belopolsky
d19b5042ff
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 21:56:53 -04:00
Alexander Belopolsky
c58c2cb392
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 21:56:09 -04:00
Alexander Belopolsky
c79447b267
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 21:41:55 -04:00
Serhiy Storchaka
ab824222d1
Issue #25011 : rlcomplete now omits private and special attribute names unless
...
the prefix starts with underscores.
2015-09-27 13:43:50 +03:00
Serhiy Storchaka
8ace8e99b3
Issue #25209 : rlcomplete now can add a space or a colon after completed keyword.
2015-09-27 13:26:03 +03:00
Victor Stinner
36b3fbb0ee
Issue #25220 : Fix Lib/test/autotest.py
2015-09-27 11:19:08 +02:00
Victor Stinner
3844fe5ed8
Issue #25220 : Move most regrtest.py code to libregrtest
2015-09-26 10:38:01 +02:00
Victor Stinner
98de5340d4
Issue #25220 : Create Lib/test/libregrtest/
...
Start to split regrtest.py into smaller parts with the creation of
Lib/test/libregrtest/cmdline.py: code to handle the command line, especially
parsing command line arguments. This part of the code is tested by
test_regrtest.
2015-09-26 09:43:45 +02:00
Benjamin Peterson
00d4442979
merge 3.5 ( #25131 )
2015-09-25 22:44:55 -07:00
Benjamin Peterson
58b53953f8
make opening brace of container literals and comprehensions correspond to the line number and col offset of the AST node ( closes #25131 )
2015-09-25 22:44:43 -07:00
Martin Panter
0931ba2259
Issue #25211 : Merge test_long from 3.5
2015-09-26 00:07:54 +00:00
Martin Panter
429f28d1ae
Issue #25211 : Merge test_long from 3.4 into 3.5
2015-09-26 00:07:29 +00:00
Martin Panter
cbe16aefb8
Issue #25211 : Eliminate lazy error message class by using subTest
...
Some of the calls to the Frm class were buggy anyway.
2015-09-25 23:50:47 +00:00
Victor Stinner
0cca00b67e
Issue #25220 : Backed out changeset eaf9a99b6bb8
2015-09-23 23:16:47 +02:00
Victor Stinner
7b92abf0e9
Issue #25220 : Create Lib/test/libregrtest/
...
Start to split regrtest.py into smaller parts with the creation of
Lib/test/libregrtest/cmdline.py.
2015-09-23 23:04:18 +02:00
Eric V. Smith
b2080f6554
f-strings: More tests for empty expressions along with missing closing braces.
2015-09-23 10:24:43 -04:00
Eric V. Smith
548c4d3178
Added more f-string test for empty expressions.
2015-09-23 08:00:01 -04:00
Eric V. Smith
1d44c41b0c
Move f-string compilation of the expression earlier, before the conversion character and format_spec are checked. This allows for error messages that more closely match what a user would expect.
2015-09-23 07:49:00 -04:00
Martin Panter
f9cd8ff14a
Issue #25047 : Merge Element Tree encoding from 3.5
2015-09-23 01:49:24 +00:00
Martin Panter
982a08f8bb
Issue #25047 : Merge Element Tree encoding from 3.4 into 3.5
2015-09-23 01:43:08 +00:00
Martin Panter
89f76d3f91
Issue #25047 : Respect case writing XML encoding declarations
...
This restores the ability to write encoding names in uppercase like "UTF-8",
which worked in Python 2.
2015-09-23 01:14:35 +00:00
Berker Peksag
dd7cb10b89
Issue #25137 : Add a note to whatsnew/3.5.rst for nested functools.partial calls
...
Also, properly skip the test_nested_optimization test for partial subclasses
and add a test for the suggested usage.
2015-09-22 13:08:42 +03:00
Berker Peksag
9b93c6b5df
Issue #25137 : Add a note to whatsnew/3.5.rst for nested functools.partial calls
...
Also, properly skip the test_nested_optimization test for partial subclasses
and add a test for the suggested usage.
2015-09-22 13:08:16 +03:00
Victor Stinner
f96418de05
Issue #24870 : Optimize the ASCII decoder for error handlers: surrogateescape,
...
ignore and replace. Initial patch written by Naoki Inada.
The decoder is now up to 60 times as fast for these error handlers.
Add also unit tests for the ASCII decoder.
2015-09-21 23:06:27 +02:00
Victor Stinner
1d59fee294
Merge 3.5 (Issue #23630 , fix test_asyncio)
2015-09-21 22:29:43 +02:00
Victor Stinner
e355604447
Merge 3.4 (Issue #23630 , fix test_asyncio)
2015-09-21 22:29:30 +02:00
Victor Stinner
582b17c2c5
Issue #23630 : Fix test_asyncio on Windows
...
The proactor event loop requires also to mock loop._stop_serving.
2015-09-21 22:28:44 +02:00
Victor Stinner
ca0d0384ad
Merge 3.5 (test_asyncio)
2015-09-21 22:20:52 +02:00
Victor Stinner
e63f1a65ed
Merge 3.4 (test_asyncio)
2015-09-21 22:20:36 +02:00
Victor Stinner
72e1eae7bb
Issue #25114 : Fix test_asyncio
...
ssl.SSLContext() does not always disable compression. Fix unit test.
2015-09-21 22:20:19 +02:00
Victor Stinner
996572ca3f
Merge 3.5 (asyncio)
2015-09-21 18:41:46 +02:00
Victor Stinner
7b58a2bb1d
Merge 3.4 (asyncio)
2015-09-21 18:41:05 +02:00
Victor Stinner
5e4a7d8dc7
Issue #23630 , asyncio: host parameter of loop.create_server() can now be a
...
sequence of strings. Patch written by Yann Sionneau.
2015-09-21 18:33:43 +02:00
Victor Stinner
385c75f8d4
Merge 3.5 (asyncio)
2015-09-21 18:08:27 +02:00
Victor Stinner
d1fcca8ada
Merge 3.4 (asyncio)
2015-09-21 18:08:06 +02:00
Victor Stinner
f7dc7fb74d
Issue #25114 , asyncio: add ssl_object extra info to SSL transports
...
This info is required on Python 3.5 and newer to get specific information on
the SSL object, like getting the binary peer certificate (instead of getting
it as text).
2015-09-21 18:06:17 +02:00
Victor Stinner
4ddccad9ad
Merge 3.5 (test_eintr, FreeBSD)
2015-09-21 14:05:18 +02:00
Victor Stinner
6dae395ed5
Issue #25122 : test_eintr: the FreeBSD fix will be released in FreeBSD 10.3
2015-09-21 14:05:02 +02:00
Victor Stinner
2bf20a4e7e
Merge 3.5 (test_socket, issue #25138 )
2015-09-21 09:06:53 +02:00
Victor Stinner
900db26d34
Merge 3.4 (test_socket, issue #25138 )
2015-09-21 09:04:17 +02:00
Victor Stinner
808d6416e3
Issue #25138 : test_socket.test_idna() uses support.transient_internet() instead
...
of catching socket.EAI_NODATA error which doesn't exist on FreeBSD.
2015-09-21 09:04:01 +02:00
Eric V. Smith
608adf9c82
Issue 25180: Fix Tools/parser/unparse.py for f-strings. Patch by Martin Panter.
2015-09-20 15:09:15 -04:00
Eric V. Smith
edef3ebafa
Temporary hack for issue #25180 : exclude test_fstring.py from the unparse round-tripping, while I figure out how to properly fix it.
2015-09-19 15:49:57 -04:00
Eric V. Smith
235a6f0984
Issue #24965 : Implement PEP 498 "Literal String Interpolation". Documentation is still needed, I'll open an issue for that.
2015-09-19 14:51:32 -04:00
Raymond Hettinger
aed8830af3
Add a fast path (no iterator creation) for a common case for repeating deques of size 1
2015-09-19 09:05:42 -07:00
Serhiy Storchaka
d644d5eefa
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 11:00:11 +03:00
Serhiy Storchaka
f2d7ea1af1
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:59:48 +03:00
Serhiy Storchaka
d86a6ef41c
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:55:20 +03:00
Victor Stinner
f409c7cd1b
Merge 3.5 (test_email)
2015-09-18 16:33:04 +02:00
Victor Stinner
4b363e2701
Merge 3.4 (test_email)
2015-09-18 16:32:51 +02:00
Victor Stinner
53936474aa
Issue #24836 : Skip FormatDateTests of test_email.test_utils on Mac OS X Snow
...
Leopard because this OS uses out of date (pre 2011k) timezone files.
2015-09-18 16:32:23 +02:00
Victor Stinner
d8f432a98c
Issue #25003 : Skip test_os.URandomFDTests on Solaris 11.3 and newer
...
When os.urandom() is implemented with the getrandom() function, it doesn't use
a file descriptor.
2015-09-18 16:24:31 +02:00
Victor Stinner
5ebfe42cdf
Oops, fix test_microsecond_rounding()
...
Test self.theclass, not datetime. Regression introduced by manual tests.
2015-09-18 14:52:15 +02:00
Victor Stinner
84ff4abd79
Merge 3.4 (datetime rounding)
2015-09-18 14:50:18 +02:00
Victor Stinner
511491ade0
Issue #23517 : Fix rounding in fromtimestamp() and utcfromtimestamp() methods
...
of datetime.datetime: microseconds are now rounded to nearest with ties going
to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards
zero (ROUND_DOWN). It's important that these methods use the same rounding
mode than datetime.timedelta to keep the property:
(datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t)
It also the rounding mode used by round(float) for example.
Add more unit tests on the rounding mode in test_datetime.
2015-09-18 14:42:05 +02:00
Victor Stinner
ec26f83f2e
Issue #25155 : Fix _PyTime_Divide() rounding
...
_PyTime_Divide() rounding was wrong: copy code from Python default which has
now much better unit tests.
2015-09-18 14:21:14 +02:00
Victor Stinner
4b352171d2
Issue #25122 : sync test_eintr with Python 3.6
...
* test_eintr: support verbose mode, don't redirect eintr_tester output into
a pipe
* eintr_tester: replace os.fork() with subprocess to have a cleaner child
process (ex: don't inherit setitimer())
* eintr_tester: kill the process if the unit test fails
* test_open/test_os_open(): write support.PIPE_MAX_SIZE bytes instead of
support.PIPE_MAX_SIZE*3 bytes
2015-09-18 11:29:16 +02:00
Victor Stinner
baab5f7341
Issue #25122 : Fix test_eintr.test_open() on FreeBSD
...
Skip test_open() and test_os_open(): both tests uses a FIFO and signals, but
there is a bug in the FreeBSD kernel which blocks the test. Skip the tests
until the bug is fixed in FreeBSD kernel.
Remove also debug traces from test_eintr:
* stop using faulthandler to have a timeout
* remove print()
Write also open and close on two lines in test_open() and test_os_open()
tests. If these tests block again, we can know if the test is stuck at open or
close.
test_eintr: don't always run the test in debug mode.
2015-09-18 11:23:42 +02:00
Serhiy Storchaka
e3bcbd2bba
Issue #25108 : Backported tests for traceback functions print_stack(),
...
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:07:18 +03:00
Serhiy Storchaka
4ebf9d3a21
Issue #25108 : Omitted internal frames in traceback functions print_stack(),
...
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:06:23 +03:00
Serhiy Storchaka
e953ba794c
Issue #25108 : Omitted internal frames in traceback functions print_stack(),
...
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:04:47 +03:00
Ethan Furman
6db1fd5fb8
Close issue24840: Enum._value_ is queried for bool(); original patch by Mike Lundy
2015-09-17 21:49:12 -07:00
Victor Stinner
e41b4712fe
Issue #25122 : add debug traces to test_eintr.test_open()
2015-09-16 09:23:28 +02:00
Victor Stinner
1e0f8ecdd8
Issue #25122 : optimize test_eintr
...
Fix test_write(): copy support.PIPE_MAX_SIZE bytes, not support.PIPE_MAX_SIZE*3
bytes.
2015-09-15 23:59:00 +02:00
Victor Stinner
3731bbe8b1
Issue #25122 : test_eintr: don't redirect stdout to stderr
...
sys.stderr is sometimes a StringIO. The redirection was just a hack to see
eintr_tester.py output in red in the buildbot output.
2015-09-15 22:55:52 +02:00
Victor Stinner
44879a0b18
Issue #25122 : Fix test_eintr, kill child process on error
...
Some test_eintr hangs on waiting for the child process completion if an error
occurred on the parent. Kill the child process on error (in the parent)
to avoid the hang.
2015-09-15 22:38:09 +02:00
Victor Stinner
f11d0d2c0d
Issue #25122 : try to debug test_eintr hang on FreeBSD
...
* Add verbose mode to test_eintr
* Always enable verbose mode in test_eintr
* Use faulthandler.dump_traceback_later() with a timeout of 15 minutes in
eintr_tester.py
2015-09-15 12:15:59 +02:00
Victor Stinner
024364a89a
Merge 3.5 (os.waitpid)
2015-09-15 10:24:27 +02:00
Victor Stinner
d3ffd32767
Issue #25118 : Fix a regression of Python 3.5.0 in os.waitpid() on Windows.
...
Add an unit test on os.waitpid()
2015-09-15 10:11:03 +02:00
Victor Stinner
13e457c808
Merge 3.5 (test_gdb)
2015-09-15 00:23:20 +02:00
Victor Stinner
d64cfc215c
Merge 3.4 (test_gdb)
2015-09-15 00:23:08 +02:00
Victor Stinner
a578eb34ba
test_gdb: fix regex to parse the GDB version
...
Fix the regex to support the version 7.10: minor version with two digits
2015-09-15 00:22:55 +02:00
Kristján Valur Jónsson
a8a930f863
Issue #25021 : Merge 3.5 to default
2015-09-12 16:36:15 +00:00
Kristján Valur Jónsson
d7f65e5763
Issue #25021 : Merge 3.4 to 3.5
2015-09-12 16:34:33 +00:00
Kristján Valur Jónsson
95c3e6cb22
Issue #25021 : Merge from 3.3 to 3.4
2015-09-12 15:30:23 +00:00