From ba52586f764693e8d200cd2e8d3faf978777c4d2 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 20 Jul 2012 14:01:34 -0400 Subject: [PATCH] Running the importlib tests from test_import is redundant as there is no difference anymore between __import__ and importlib.__import__. --- Lib/test/test_import.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 51b52c7e0b6..1accd7e30e0 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -2,7 +2,6 @@ import importlib import builtins import imp -from importlib.test.import_ import test_suite as importlib_import_test_suite from importlib.test.import_ import util as importlib_util import marshal import os @@ -881,18 +880,12 @@ class ImportTracebackTests(unittest.TestCase): def test_main(verbose=None): - flag = importlib_util.using___import__ - try: - importlib_util.using___import__ = True - run_unittest(ImportTests, PycacheTests, - PycRewritingTests, PathsTests, RelativeImportTests, - OverridingImportBuiltinTests, - ImportlibBootstrapTests, - TestSymbolicallyLinkedPackage, - ImportTracebackTests, - importlib_import_test_suite()) - finally: - importlib_util.using___import__ = flag + run_unittest(ImportTests, PycacheTests, + PycRewritingTests, PathsTests, RelativeImportTests, + OverridingImportBuiltinTests, + ImportlibBootstrapTests, + TestSymbolicallyLinkedPackage, + ImportTracebackTests) if __name__ == '__main__':