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.
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):