From: Nick Coghlan <ncoghlan@gmail.com>
Date: Wed, 15 Mar 2006 13:29:19 +0000 (+0000)
Subject: Don't try to explicitly set path in runpy package tests (tests were broken on Windows)
X-Git-Tag: v2.5a0~235
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=598f8a00311da62446be6cb169bb00a39f45cab3;p=python

Don't try to explicitly set path in runpy package tests (tests were broken on Windows)
---

diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py
index 5d8607b70e..ffd886af1a 100644
--- a/Lib/test/test_runpy.py
+++ b/Lib/test/test_runpy.py
@@ -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)