summaryrefslogtreecommitdiffstats
path: root/Lib/test/__main__.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-110756: Sync regrtest with main branch (#110758)Victor Stinner2023-10-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | gh-110756: Sync regrtest with main branch Copy files from main to this branch: * Lib/test/libregrtest/*.py * Lib/test/__init__.py * Lib/test/__main__.py * Lib/test/autotest.py * Lib/test/pythoninfo.py * Lib/test/regrtest.py * Lib/test/test_regrtest.py Do not modify scripts running tests such as Makefile.pre.in, .github/workflows/build.yml or Tools/scripts/run_tests.py: do not use --fast-ci and --slow-ci in this change. Changes: * SPLITTESTDIRS: don't include test_inspect. * Add utils.process_cpu_count() using len(os.sched_getaffinity(0)). * test_regrtest doesn't use @support.without_optimizer which doesn't exist in Python 3.12. * Add support.set_sanitizer_env_var(). * Update test_faulthandler to use support.set_sanitizer_env_var().
* Cleanup regrtest "main()" functionVictor Stinner2016-03-241-3/+2
| | | | | | | * 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()
* Issue #17283: Share code between __main__.py and regrtest.py in Lib/test.Chris Jerdonek2013-02-271-12/+2
| | | | This commit also removes TESTCWD from regrtest.py's global namespace.
* Factor out common code from lib/test/__main__.py and lib/test/regrtest.py ↵Michael Foord2010-12-031-32/+3
| | | | into a function.
* Fix lib/test/__main__.py to work even outside a Python build.Michael Foord2010-12-031-0/+2
|
* Adding lib/test/__main__.py for running tests with 'python -m test'Michael Foord2010-12-031-0/+40
|
* Remove test/__main__.py until runpy tests can be fixedMichael Foord2010-12-031-40/+0
|
* Set test.regrtest.TEMPDIR correctly when run with 'python -m test'Michael Foord2010-12-031-2/+4
|
* Initial implementation of Lib/test/__main__.py so we can run tests with ↵Michael Foord2010-12-031-0/+38
'python -m test'