Commit 7999deaf authored by Ezio Melotti's avatar Ezio Melotti

Fix test_compiler.py that was using unittest.__file__ to find Lib/ (unittest is now a package).

parent 5637f04a
......@@ -23,7 +23,9 @@ class CompilerTest(unittest.TestCase):
# to generate some kind of code for it.
next_time = time.time() + _PRINT_WORKING_MSG_INTERVAL
libdir = os.path.dirname(unittest.__file__)
# warning: if 'os' or 'test_support' are moved in some other dir,
# they should be changed here.
libdir = os.path.dirname(os.__file__)
testdir = os.path.dirname(test.test_support.__file__)
for dir in [libdir, testdir]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment