Victor Stinner
3aac0adfe0
Cleanup regrtest "main()" function
...
* 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()
2016-03-24 17:53:20 +01:00
Chris Jerdonek
517e925614
Issue #17283 : Share code between __main__.py and regrtest.py in Lib/test.
...
This commit also removes TESTCWD from regrtest.py's global namespace.
2013-02-27 09:02:53 -08:00
Michael Foord
3ab34ccae3
Factor out common code from lib/test/__main__.py and lib/test/regrtest.py into a function.
2010-12-03 12:27:40 +00:00
Michael Foord
97cbb76ee3
Fix lib/test/__main__.py to work even outside a Python build.
2010-12-03 10:59:15 +00:00
Michael Foord
ee4a5e0ca8
Adding lib/test/__main__.py for running tests with 'python -m test'
2010-12-03 10:42:03 +00:00
Michael Foord
240f112448
Remove test/__main__.py until runpy tests can be fixed
2010-12-03 02:27:44 +00:00
Michael Foord
a7a0e1a0f4
Set test.regrtest.TEMPDIR correctly when run with 'python -m test'
2010-12-03 02:03:30 +00:00
Michael Foord
e2befc11db
Initial implementation of Lib/test/__main__.py so we can run tests with 'python -m test'
2010-12-03 01:34:01 +00:00