Commit bf900448 authored by R. David Murray's avatar R. David Murray

Make test_compileall more robust by using -S to keep sys.path minimized.

Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path.  Having subprocess call python
with -S should eliminate the system directories from the path.
parent 01094e1f
......@@ -132,7 +132,7 @@ class CommandLineTests(unittest.TestCase):
def assertRunNotOK(self, *args, **env_vars):
rc, out, err = script_helper.assert_python_failure(
'-m', 'compileall', *args, **env_vars)
'-S', '-m', 'compileall', *args, **env_vars)
return rc, out, err
def assertCompiled(self, fn):
......
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