Index: Lib/test/test_linecache.py =================================================================== --- Lib/test/test_linecache.py (revision 76658) +++ Lib/test/test_linecache.py (working copy) @@ -83,7 +83,7 @@ getline = linecache.getline try: # Create a source file and cache its contents - source_name = os.path.join(TEST_PATH, 'linecache_test.py') + source_name = support.TESTFN source = open(source_name, 'w') source.write(SOURCE_1) source.close()