summaryrefslogtreecommitdiffstats
path: root/Lib/test/__main__.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-109566: Fix regrtest code adding Python options (#109926)Victor Stinner2023-09-261-1/+1
| | | | | | * On Windows, use subprocess.run() instead of os.execv(). * Only add needed options * Rename reexec parameter to _add_python_opts. * Rename --no-reexec option to --dont-add-python-opts.
* gh-109566: regrtest reexecutes the process (#109909)Victor Stinner2023-09-261-1/+1
| | | | | | | | | | | | | When --fast-ci or --slow-ci option is used, regrtest now replaces the current process with a new process to add "-u -W default -bb -E" options to Python. Changes: * PCbuild/rt.bat and Tools/scripts/run_tests.py no longer need to add "-u -W default -bb -E" options to Python: it's now done by regrtest. * Fix Tools/scripts/run_tests.py: flush stdout before replacing the process. Previously, buffered messages were lost.
* gh-109162: libregrtest: use relative imports (#109250)Victor Stinner2023-09-111-1/+1
| | | | libregrtest.__init__ no longer exposes any symbol, so "python -m test.libregrtest.worker" imports less modules.
* 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'