bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)

This commit is contained in:
Ned Deily 2019-12-17 04:05:41 -05:00 committed by GitHub
parent d21ad67d5e
commit bf3aa1060a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class SourceDateEpochTestMeta(type(unittest.TestCase)):
class PyCompileTestsBase:
def setUp(self):
self.directory = tempfile.mkdtemp()
self.directory = tempfile.mkdtemp(dir=os.getcwd())
self.source_path = os.path.join(self.directory, '_test.py')
self.pyc_path = self.source_path + 'c'
self.cache_path = importlib.util.cache_from_source(self.source_path)

View File

@ -0,0 +1 @@
Prevent failure of test_relative_path in test_py_compile on macOS Catalina.