]> granicus.if.org Git - python/commitdiff
Don't try to explicitly set path in runpy package tests (tests were broken on Windows)
authorNick Coghlan <ncoghlan@gmail.com>
Wed, 15 Mar 2006 13:29:19 +0000 (13:29 +0000)
committerNick Coghlan <ncoghlan@gmail.com>
Wed, 15 Mar 2006 13:29:19 +0000 (13:29 +0000)
Lib/test/test_runpy.py

index 5d8607b70e647ba1c371267b8f9ade372ba6d104..ffd886af1a64090386368278869efed31a25f7ce 100644 (file)
@@ -101,7 +101,6 @@ class RunModuleTest(unittest.TestCase):
             if verbose: print "  Next level in:", sub_dir
             pkg_fname = os.path.join(sub_dir, init_fname)
             pkg_file = open(pkg_fname, "w")
-            pkg_file.write("__path__ = ['%s']\n" % sub_dir)
             pkg_file.close()
             if verbose: print "  Created:", pkg_fname
         mod_fname = os.path.join(sub_dir, test_fname)