From 139652100e526aeb4633a4eec6b34e501c15ea39 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 12 Sep 2016 15:08:32 +0200 Subject: Issue #27322: skip test_compile_path when sys.path is not writeable. --- Lib/test/test_compileall.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py index 9b424a7..ff29c91 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) -- cgit v0.12