Commit 13965210 authored by Christian Heimes's avatar Christian Heimes

Issue #27322: skip test_compile_path when sys.path is not writeable.

parent 62871771
......@@ -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)
......
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