Index: Lib/test/test_file.py =================================================================== --- Lib/test/test_file.py (revision 82848) +++ Lib/test/test_file.py (working copy) @@ -162,7 +162,7 @@ class OtherFileTests(unittest.TestCase): def testOpenDir(self): - this_dir = os.path.dirname(__file__) + this_dir = os.path.dirname(os.path.abspath(__file__)) for mode in (None, "w"): try: if mode: