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/test_importlib | |
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/test_importlib')
-rw-r--r-- | Lib/test/test_importlib/regrtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/regrtest.py b/Lib/test/test_importlib/regrtest.py index a5be11f..98c815c 100644 --- a/Lib/test/test_importlib/regrtest.py +++ b/Lib/test/test_importlib/regrtest.py @@ -8,10 +8,10 @@ this script. """ import importlib import sys -from test import regrtest +from test import libregrtest if __name__ == '__main__': __builtins__.__import__ = importlib.__import__ sys.path_importer_cache.clear() - regrtest.main(quiet=True, verbose2=True) + libregrtest.main(quiet=True, verbose2=True) |