bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)
This commit is contained in:
parent
d21ad67d5e
commit
bf3aa1060a
|
@ -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