summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-12 13:08:32 (GMT)
committerChristian Heimes <christian@python.org>2016-09-12 13:08:32 (GMT)
commit139652100e526aeb4633a4eec6b34e501c15ea39 (patch)
treeaad9cd96121844a850079a78014a471709c4553e /Lib
parent6287177169c10d7063836fafd2f4aaf9f69421fa (diff)
downloadcpython-139652100e526aeb4633a4eec6b34e501c15ea39.zip
cpython-139652100e526aeb4633a4eec6b34e501c15ea39.tar.gz
cpython-139652100e526aeb4633a4eec6b34e501c15ea39.tar.bz2
Issue #27322: skip test_compile_path when sys.path is not writeable.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_compileall.py1
1 files changed, 1 insertions, 0 deletions
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)