10000 Simplify test.test_importlib.__main__ · python/cpython@2ce6c44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ce6c44

Browse files
committed
Simplify test.test_importlib.__main__
1 parent 330f71b commit 2ce6c44

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Lib/test/test_importlib/__main__.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44
builtins.__import__ instead of importlib.__import__.
55
66
"""
7-
from . import test_main
8-
9-
107
if __name__ == '__main__':
11-
import argparse
12-
13-
parser = argparse.ArgumentParser(description='Execute the importlib test '
14-
'suite')
15-
parser.add_argument('-b', '--builtin', action='store_true', default=False,
16-
help='use builtins.__import__() instead of importlib')
17-
args = parser.parse_args()
8+
from . import test_main
189
test_main()

0 commit comments

Comments
 (0)
0