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

(cherry picked from commit bf3aa1060a)

Co-authored-by: Ned Deily <nad@python.org>
This commit is contained in:
Miss Islington (bot) 2019-12-17 01:23:55 -08:00 committed by Ned Deily
parent 9346209be4
commit 13ee023c03
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.