mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue