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:
parent
9346209be4
commit
13ee023c03
|
@ -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)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Prevent failure of test_relative_path in test_py_compile on macOS Catalina.
|
Loading…
Reference in New Issue