summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compileall.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-12-20 18:08:59 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-12-20 18:08:59 (GMT)
commitbf9004483d20b7d17ea589851337a2207e786fb8 (patch)
tree800c29557e664a28ef9646a102d01d13aeff14ab /Lib/test/test_compileall.py
parent01094e1fe4893b0563f9b14537e487b6538233d6 (diff)
downloadcpython-bf9004483d20b7d17ea589851337a2207e786fb8.zip
cpython-bf9004483d20b7d17ea589851337a2207e786fb8.tar.gz
cpython-bf9004483d20b7d17ea589851337a2207e786fb8.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_compileall.py')
-rw-r--r--Lib/test/test_compileall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py
index 3f333a5..f8b4e46 100644
--- a/Lib/test/test_compileall.py
+++ b/Lib/test/test_compileall.py
@@ -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):