mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Simplify test.test_importlib.__main__
This commit is contained in:
parent
330f71b617
commit
2ce6c44ae4
1 changed files with 1 additions and 10 deletions
|
|
@ -4,15 +4,6 @@ Specifying the ``--builtin`` flag will run tests, where applicable, with
|
||||||
builtins.__import__ instead of importlib.__import__.
|
builtins.__import__ instead of importlib.__import__.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from . import test_main
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import argparse
|
from . import test_main
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Execute the importlib test '
|
|
||||||
'suite')
|
|
||||||
parser.add_argument('-b', '--builtin', action='store_true', default=False,
|
|
||||||
help='use builtins.__import__() instead of importlib')
|
|
||||||
args = parser.parse_args()
|
|
||||||
test_main()
|
test_main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue