summaryrefslogtreecommitdiff
path: root/Lib/test/test_compiler.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-04-02 21:43:10 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-04-02 21:43:10 +0000
commit7999deafc85ba768ec94b175d5a6942e9378e645 (patch)
tree1fd2ebf98e5c27909a88193147c529aba94a0f4a /Lib/test/test_compiler.py
parent5637f04a94242b6b696cf699625f708ce4ecb186 (diff)
downloadcpython-git-7999deafc85ba768ec94b175d5a6942e9378e645.tar.gz
Fix test_compiler.py that was using unittest.__file__ to find Lib/ (unittest is now a package).
Diffstat (limited to 'Lib/test/test_compiler.py')
-rw-r--r--Lib/test/test_compiler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py
index c257f0207c..6394b53a0c 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]: