[Python-checkins] cpython: Issue #27322: skip test_compile_path when sys.path is not writeable.
christian.heimes
python-checkins at python.org
Mon Sep 12 09:08:47 EDT 2016
https://hg.python.org/cpython/rev/e9e4d1b5b4b5
changeset: 103709:e9e4d1b5b4b5
user: Christian Heimes <christian at python.org>
date: Mon Sep 12 15:08:32 2016 +0200
summary:
Issue #27322: skip test_compile_path when sys.path is not writeable.
files:
Lib/test/test_compileall.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py
--- a/Lib/test/test_compileall.py
+++ b/Lib/test/test_compileall.py
@@ -105,6 +105,7 @@
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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list