summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest
Commit message (Collapse)AuthorAgeFilesLines
* Adds test.support.PGO and skips tests that are not useful for PGO.Steve Dower2016-09-071-0/+2
|
* Closes issue 27921: Disallow backslashes anywhere in f-strings. This is a ↵Eric V. Smith2016-09-031-1/+1
| | | | 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.
* Issue #27829: libregrtest.save_env: flush stderrVictor Stinner2016-08-221-6/+4
| | | | | | Use flush=True to try to get a warning which is missing in buildbots. Use also f-string to make the code shorter.
* Cleanup libregrtestVictor Stinner2016-08-222-37/+20
| | | | | * main.py: remove unused import * runtest: simplify runtest_inner() parameters, reuse ns parameter
* Issue #27787: Merge regrtest fixup from 3.5Martin Panter2016-08-201-0/+1
|
* regrtest: replace "Result:" with "Tests result:"Victor Stinner2016-08-191-1/+1
|
* regrtest: add a summary of the summary, "Result: xxx"Victor Stinner2016-08-171-0/+8
| | | | | | | 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).
* regrtest: set interrupted to True if re-run is interruptedVictor Stinner2016-08-171-1/+2
|
* regrtest: add newlines in output for readabilityVictor Stinner2016-08-171-0/+3
|
* regrtest: nicer output for durationsVictor Stinner2016-08-171-12/+19
| | | | Use milliseconds and minutes units, not only seconds.
* regrtest: rename --slow option to --slowestVictor Stinner2016-08-171-1/+1
| | | | Thanks to optparse, --slow syntax still works ;-)
* Closes issue #24773: Implement PEP 495 (Local Time Disambiguation).Alexander Belopolsky2016-07-221-1/+3
|
* regrtest: display test result (passed, failed, ...)Victor Stinner2016-05-203-8/+26
| | | | | * in multiprocessing mode: always display the result * sequential mode: only display the result if the test did not pass
* regrtest doesn't ignore -j1 anymoreVictor Stinner2016-05-201-2/+0
| | | | | | | | * 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.
* Issue #26295: When using "python3 -m test --testdir=TESTDIR", regrtest doesn'tVictor Stinner2016-03-302-4/+9
| | | | | | add "test." prefix to test module names. regrtest also prepends testdir to sys.path.
* Merge 3.5 (regrtest)Victor Stinner2016-03-291-0/+1
|
* fix typo in commentVictor Stinner2016-03-291-1/+1
| | | | Thanks Arfrever for the report :)
* regrtest: round final timing towards +infVictor Stinner2016-03-271-3/+8
|
* Backed out changeset 245a16f33c4bVictor Stinner2016-03-251-279/+202
| | | | Serhiy asked me to review it.
* Rework libregrtest.save_envVictor Stinner2016-03-251-202/+279
| | | | | | | | | | | * 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
* Cleanup regrtest "main()" functionVictor Stinner2016-03-242-23/+27
| | | | | | | * 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()
* regrtest: when parallel tests are interrupted, display progressVictor Stinner2016-03-241-6/+18
|
* regrtest: mention in tests run sequentially or in parallelVictor Stinner2016-03-242-0/+4
|
* regrtest: fix --fromfile featureVictor Stinner2016-03-241-6/+17
| | | | | * Update code for the name regrtest output format. * Enhance also test_regrtest test on --fromfile
* regrtest: display test duration in sequential modeVictor Stinner2016-03-233-7/+26
| | | | Only display duration if a test takes more than 30 seconds.
* regrtest: add timeout to main process when using -jNVictor Stinner2016-03-231-2/+11
| | | | | libregrtest: add a watchdog to run_tests_multiprocess() using faulthandler.dump_traceback_later().
* regrtest: add time to outputVictor Stinner2016-03-221-5/+18
| | | | | Timestamps should help to debug slow buildbots, and timeout and hang on buildbots.
* regrtest: Fix module.__path__Victor Stinner2016-03-151-2/+2
| | | | | | | 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.
* regrtest: display progress every 30 seconds (instead of 60 seconds) whenVictor Stinner2015-11-041-1/+1
| | | | running tests in multiprocessing mode (-jN).
* Issue #25523: Merge a-to-an corrections from 3.5.Serhiy Storchaka2015-11-021-1/+1
|
* Close #25373: Fix regrtest --slow with interrupted testVictor Stinner2015-10-111-4/+8
| | | | | | | * 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
* Fix missing import in libregrtest.Steve Dower2015-10-081-0/+1
|
* Issue #23919: Prevents assert dialogs appearing in the test suite.Steve Dower2015-10-082-3/+13
|
* Merge from 3.5 for issue #25188.Brett Cannon2015-10-025-20/+42
|
* Issue #22806: Add ``python -m test --list-tests`` command to list tests.Victor Stinner2015-10-022-26/+40
|
* Issue #18174: "python -m test --huntrleaks ..." now also checks for leak ofVictor Stinner2015-10-021-5/+42
| | | | file descriptors. Patch written by Richard Oudkerk.
* Fix regrtest --coverage on WindowsVictor Stinner2015-09-301-4/+1
| | | | | Issue #25260: Fix ``python -m test --coverage`` on Windows. Remove the list of ignored directories.
* Issue #25220: Fix "-m test --forever"Victor Stinner2015-09-303-5/+6
| | | | | | | * 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
* Issue #25220, libregrtest: more verbose output for -jNVictor Stinner2015-09-301-11/+28
| | | | | When the -jN command line option is used, display tests running since at least 30 seconds every minute.
* Issue #25220, libregrtest: CleanupVictor Stinner2015-09-302-9/+9
| | | | | No need to support.verbose in Regrtest.run_tests(), it's always set in runtest().
* Issue #25220, libregrtest: Pass directly ns to runtest()Victor Stinner2015-09-303-45/+44
| | | | | | * 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
* Issue #25220, libregrtest: Set support.use_resources in setup_tests()Victor Stinner2015-09-304-11/+8
| | | | | * Rename setup_python() to setup_tests() * Remove use_resources parameter of runtest()
* Issue #25220, libregrtest: Call setup_python(ns) in the slavesVictor Stinner2015-09-293-8/+7
| | | | | | | | | | 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.
* Issue #25220, libregrtest: Add runtest_ns() functionVictor Stinner2015-09-293-22/+26
| | | | | | * Factorize code to run tests. * run_test_in_subprocess() now pass the whole "ns" namespace to the child process.
* Issue #25220, libregrtest: Move setup_python() to a new submoduleVictor Stinner2015-09-292-110/+123
|
* Issue #25220, libregrtest: Cleanup setup codeVictor Stinner2015-09-291-47/+49
|
* Issue #25220: Use print(flush=True) in libregrtestVictor Stinner2015-09-294-25/+15
|
* Issue #25220: Enhance regrtest -jNVictor Stinner2015-09-291-37/+90
| | | | | | | | | | 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.
* Don't strip refcount in libregrtest/runtest_mp.pyVictor Stinner2015-09-291-6/+0
| | | | | | | 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.
* Issue #25220, libregrtest: Remove unused importVictor Stinner2015-09-291-4/+0
|