| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
temporary restriction. In 3.6 beta 2, the plan is to again allow backslashes in the string parts of f-strings, but disallow them in the expression parts.
|
|
|
|
|
|
| |
Use flush=True to try to get a warning which is missing in buildbots.
Use also f-string to make the code shorter.
|
|
|
|
|
| |
* main.py: remove unused import
* runtest: simplify runtest_inner() parameters, reuse ns parameter
|
| |
|
| |
|
|
|
|
|
|
|
| |
It's sometimes hard to check quickly if tests succeeded, failed or something
bad happened. I added a final "Result: xxx" line which summarizes all outputs
into a single line, written at the end (it should always be the last line of
the output).
|
| |
|
| |
|
|
|
|
| |
Use milliseconds and minutes units, not only seconds.
|
|
|
|
| |
Thanks to optparse, --slow syntax still works ;-)
|
| |
|
|
|
|
|
| |
* in multiprocessing mode: always display the result
* sequential mode: only display the result if the test did not pass
|
|
|
|
|
|
|
|
| |
* regrtest now uses subprocesses when the -j1 command line option
is used: each test file runs in a fresh child process. Before, the -j1 option
was ignored.
* Tools/buildbot/test.bat script now uses -j1 by default to run
each test file in fresh child process.
|
|
|
|
|
|
| |
add "test." prefix to test module names.
regrtest also prepends testdir to sys.path.
|
| |
|
|
|
|
| |
Thanks Arfrever for the report :)
|
| |
|
|
|
|
| |
Serhiy asked me to review it.
|
|
|
|
|
|
|
|
|
|
|
| |
* Replace get/restore methods with a Resource class and Resource subclasses
* Create ModuleAttr, ModuleAttrList and ModuleAttrDict helper classes
* Use __subclasses__() to get resource classes instead of using an hardcoded
list (2 shutil resources were missinged in the list!)
* Don't define MultiprocessingProcessDangling resource if the multiprocessing
module is missing
* Nicer diff for dictionaries. Useful for the big os.environ dict
* Reorder code to group resources
|
|
|
|
|
|
|
| |
* Rename libregrtest.main_in_temp_cwd() to libregrtest.main()
* Add regrtest.main_in_temp_cwd() alias to libregrtest.main()
* Move old main_in_temp_cwd() code into libregrtest.Regrtest.main()
* Update multiple scripts to call libregrtest.main()
|
| |
|
| |
|
|
|
|
|
| |
* Update code for the name regrtest output format.
* Enhance also test_regrtest test on --fromfile
|
|
|
|
| |
Only display duration if a test takes more than 30 seconds.
|
|
|
|
|
| |
libregrtest: add a watchdog to run_tests_multiprocess() using
faulthandler.dump_traceback_later().
|
|
|
|
|
| |
Timestamps should help to debug slow buildbots, and timeout and hang on
buildbots.
|
|
|
|
|
|
|
| |
Issue #26538: libregrtest: Fix setup_tests() to keep module.__path__ type
(_NamespacePath), don't convert to a list.
Add _NamespacePath.__setitem__() method to importlib._bootstrap_external.
|
|
|
|
| |
running tests in multiprocessing mode (-jN).
|
| |
|
|
|
|
|
|
|
| |
* Fix accumulate_result(): don't use time on interrupted and failed test
* Add unit test for interrupted test
* Add unit test on --slow with interrupted test, with and without
multiprocessing
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
file descriptors. Patch written by Richard Oudkerk.
|
|
|
|
|
| |
Issue #25260: Fix ``python -m test --coverage`` on Windows. Remove the list of
ignored directories.
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
When the -jN command line option is used, display tests running since at least
30 seconds every minute.
|
|
|
|
|
| |
No need to support.verbose in Regrtest.run_tests(), it's always set in
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
|
|
|
|
|
| |
* Rename setup_python() to setup_tests()
* Remove use_resources parameter of runtest()
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
process.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|