Kill dead code in importlib.test.__main__ (#12019, reviewed by Brett Cannon)

This commit is contained in:
Éric Araujo 2011-06-07 17:58:50 +02:00
parent 313570a185
commit ef3062f7af
1 changed files with 1 additions and 6 deletions

View File

@ -4,7 +4,6 @@ Specifying the ``--builtin`` flag will run tests, where applicable, with
builtins.__import__ instead of importlib.__import__. builtins.__import__ instead of importlib.__import__.
""" """
import importlib
from importlib.test.import_ import util from importlib.test.import_ import util
import os.path import os.path
from test.support import run_unittest from test.support import run_unittest
@ -13,10 +12,6 @@ import unittest
def test_main(): def test_main():
if '__pycache__' in __file__:
parts = __file__.split(os.path.sep)
start_dir = sep.join(parts[:-2])
else:
start_dir = os.path.dirname(__file__) start_dir = os.path.dirname(__file__)
top_dir = os.path.dirname(os.path.dirname(start_dir)) top_dir = os.path.dirname(os.path.dirname(start_dir))
test_loader = unittest.TestLoader() test_loader = unittest.TestLoader()