diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-24 16:53:20 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-24 16:53:20 (GMT) |
commit | 3aac0adfe01b30fc58c638c5ab61844e80b3fd66 (patch) | |
tree | 5e3691904a971e3b305bc4d2e1b950e6ddef6570 /Lib/test/regrtest.py | |
parent | 8c08e0db8fa47c0c8780607a0d803d4964fdffa6 (diff) | |
download | cpython-3aac0adfe01b30fc58c638c5ab61844e80b3fd66.zip cpython-3aac0adfe01b30fc58c638c5ab61844e80b3fd66.tar.gz cpython-3aac0adfe01b30fc58c638c5ab61844e80b3fd66.tar.bz2 |
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()
Diffstat (limited to 'Lib/test/regrtest.py')
-rw-r--r-- | Lib/test/regrtest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 9cbb926..21b0edf 100644 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -11,11 +11,11 @@ import importlib import os import sys -from test.libregrtest import main_in_temp_cwd +from test.libregrtest import main -# alias needed by other scripts -main = main_in_temp_cwd +# Alias for backward compatibility (just in case) +main_in_temp_cwd = main def _main(): |