Commit 598f8a00 authored by Nick Coghlan's avatar Nick Coghlan

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

parent 586b83c4
...@@ -101,7 +101,6 @@ class RunModuleTest(unittest.TestCase): ...@@ -101,7 +101,6 @@ class RunModuleTest(unittest.TestCase):
if verbose: print " Next level in:", sub_dir if verbose: print " Next level in:", sub_dir
pkg_fname = os.path.join(sub_dir, init_fname) pkg_fname = os.path.join(sub_dir, init_fname)
pkg_file = open(pkg_fname, "w") pkg_file = open(pkg_fname, "w")
pkg_file.write("__path__ = ['%s']\n" % sub_dir)
pkg_file.close() pkg_file.close()
if verbose: print " Created:", pkg_fname if verbose: print " Created:", pkg_fname
mod_fname = os.path.join(sub_dir, test_fname) mod_fname = os.path.join(sub_dir, test_fname)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment