mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
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()
This commit is contained in:
parent
8c08e0db8f
commit
3aac0adfe0
7 changed files with 38 additions and 36 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue