From 7999deafc85ba768ec94b175d5a6942e9378e645 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Fri, 2 Apr 2010 21:43:10 +0000 Subject: [PATCH] Fix test_compiler.py that was using unittest.__file__ to find Lib/ (unittest is now a package). --- Lib/test/test_compiler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index c257f0207ce..6394b53a0cf 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -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]: