[Python-checkins] r79624 - python/trunk/Lib/test/test_compiler.py

ezio.melotti python-checkins at python.org
Fri Apr 2 23:43:10 CEST 2010


Author: ezio.melotti
Date: Fri Apr  2 23:43:10 2010
New Revision: 79624

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

Modified:
   python/trunk/Lib/test/test_compiler.py

Modified: python/trunk/Lib/test/test_compiler.py
==============================================================================
--- python/trunk/Lib/test/test_compiler.py	(original)
+++ python/trunk/Lib/test/test_compiler.py	Fri Apr  2 23:43:10 2010
@@ -23,7 +23,9 @@
         # 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]:


More information about the Python-checkins mailing list