diff options
author | Brett Cannon <brett@python.org> | 2013-11-08 18:35:34 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-11-08 18:35:34 (GMT) |
commit | 2ce6c44ae4c1055092a8cfb31d8d804c9b6458f6 (patch) | |
tree | e0d66a16e2f7e9af4380fac27f72b0c572e67d41 | |
parent | 330f71b617f0b1c78a16f1cf29f9887191c20391 (diff) | |
download | cpython-2ce6c44ae4c1055092a8cfb31d8d804c9b6458f6.zip cpython-2ce6c44ae4c1055092a8cfb31d8d804c9b6458f6.tar.gz cpython-2ce6c44ae4c1055092a8cfb31d8d804c9b6458f6.tar.bz2 |
Simplify test.test_importlib.__main__
-rw-r--r-- | Lib/test/test_importlib/__main__.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Lib/test/test_importlib/__main__.py b/Lib/test/test_importlib/__main__.py index 8431cab..14bd5bc 100644 --- a/Lib/test/test_importlib/__main__.py +++ b/Lib/test/test_importlib/__main__.py @@ -4,15 +4,6 @@ Specifying the ``--builtin`` flag will run tests, where applicable, with builtins.__import__ instead of importlib.__import__. """ -from . import test_main - - if __name__ == '__main__': - import argparse - - 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() + from . import test_main test_main() |