| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When running the test suite using --use=all / -u all, exclude tzdata
since it makes test_datetime too slow (15-20 min on some buildbots)
which then times out on some buildbots.
-u tzdata must now be enabled explicitly, -u tzdata or -u all,tzdata,
to run all test_datetime tests.
Fix also regrtest command line parser to allow passing -u
extralargefile to run test_zipfile64.
Travis CI: remove -tzdata. Replace -u all,-tzdata,-cpu with -u all,-cpu since tzdata is now excluded from -u all.
(cherry picked from commit 5b392bbaeb9d9b1db961ecfc7315d8c8662c27f6)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-30523: regrtest --list-cases --match (#2401)
* regrtest --list-cases now supports --match and --match-file options.
Example: ./python -m test --list-cases -m FileTests test_os
* --list-cases now also sets support.verbose to False to prevent
messages to stdout when loading test modules.
* Add support._match_test() private function.
(cherry picked from commit ace56d583664f855d89d1219ece7c21c2fddcf30)
* bpo-30764: regrtest: add --fail-env-changed option (#2402)
* bpo-30764: regrtest: change exit code on failure
* Exit code 2 if failed tests ("bad")
* Exit code 3 if interrupted
* bpo-30764: regrtest: add --fail-env-changed option
If the option is set, mark a test as failed if it alters the
environment, for example if it creates a file without removing it.
(cherry picked from commit 63f54c68936d648c70ca411661e4208329edcf26)
* bpo-30776: reduce regrtest -R false positives (#2422)
* Change the regrtest --huntrleaks checker to decide if a test file
leaks or not. Require that each run leaks at least 1 reference.
* Warmup runs are now completely ignored: ignored in the checker test
and not used anymore to compute the sum.
* Add an unit test for a reference leak.
Example of reference differences previously considered a failure
(leak) and now considered as success (success, no leak):
[3, 0, 0]
[0, 1, 0]
[8, -8, 1]
(cherry picked from commit 48b5c422ffb03affb00c184b9a99e5537be92732)
|
|
|
|
|
|
|
| |
* bpo-30523: regrtest: Add --list-cases option (#2238)
* bpo-30284: Fix regrtest for out of tree build (#1481)
* bpo-30540: regrtest: add --matchfile option (#1909)
* bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479)
* bpo-30263: regrtest: log system load (#1452)
|
|\ |
|
| | |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| | |
Issue #28195: Don't expect the fd leak message to be on a specific line number,
just make sure that the line is present in the output.
|
| |
| |
| |
| |
| |
| |
| | |
And most of the tools.
Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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 ;-)
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
Pass all regrtest options, not only --testdir.
|
| |
| |
| |
| | |
Pass also --testdir option.
|
| |
| |
| |
| |
| |
| |
| | |
test_forever() stores its state into the builtins module since the test module
is reloaded at each run.
Remove also warning to detect leaked tests of a previous run.
|
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| |
| | |
Timestamps should help to debug slow buildbots, and timeout and hang on
buildbots.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| |
| | |
Check also that the deprecation warning is emited.
|
| | |
|
| |
| |
| |
| | |
Issue #25306: Disable popup and logs to stderr on assertion failures in MSCRT.
|
| |
| |
| |
| | |
fixed.
|
| | |
|
| | |
|
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Replace script_helper.assert_python_ok() with subprocess.run().
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Issue #25220: Fix test_regrtest.test_tools_buildbot_test() on release build (on
Windows), pass "+d" option to test.bat.
|
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|/
|
|
|
| |
Start to split regrtest.py into smaller parts with the creation of
Lib/test/libregrtest/cmdline.py.
|
| |
|
| |
|
|
|
|
| |
'--timeout' option requires faulthandler.dump_traceback_later).
|
|
|
|
|
| |
If bots fail due to using this flag, the buildbot scripts have to be modified
to omit it. Regrtest ignores it anyway.
|
|
|
|
| |
parsing. Added more tests for regrtest's argument parsing.
|
|
|
|
|
| |
This fixes a regression introduced in the commit for issue #15302, which
switched regrtest from getopt to argparse.
|
|
This is the first step in refactoring regrtest to use argparse. The
regrtest module's main() function still expects a getopt-style return
value rather than an argparse.Namespace instance.
|