From: Christian Heimes Date: Mon, 12 Sep 2016 13:08:32 +0000 (+0200) Subject: Issue #27322: skip test_compile_path when sys.path is not writeable. X-Git-Tag: v3.6.0b1~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=139652100e526aeb4633a4eec6b34e501c15ea39;p=thirdparty%2FPython%2Fcpython.git Issue #27322: skip test_compile_path when sys.path is not writeable. --- diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py index 9b424a725061..ff29c91fdb94 100644 --- a/Lib/test/test_compileall.py +++ b/Lib/test/test_compileall.py @@ -105,6 +105,7 @@ class CompileallTests(unittest.TestCase): def test_compile_path(self): # Exclude Lib/test/ which contains invalid Python files like # Lib/test/badsyntax_pep3120.py + self._skip_if_sys_path_not_writable() testdir = os.path.realpath(os.path.dirname(__file__)) if testdir in sys.path: self.addCleanup(setattr, sys, 'path', sys.path)