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
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
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
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