mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Issue #27322: skip test_compile_path when sys.path is not writeable.
This commit is contained in:
parent
6287177169
commit
139652100e
1 changed files with 1 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ def test_compile_files(self):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue