Skip to content

Commit 5a9b697

Browse files
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636) (GH-17638)
(cherry picked from commit bf3aa10) Co-authored-by: Ned Deily <[email protected]>
1 parent 7699281 commit 5a9b697

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/test/test_py_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class PyCompileTests(unittest.TestCase):
1414

1515
def setUp(self):
16-
self.directory = tempfile.mkdtemp()
16+
self.directory = tempfile.mkdtemp(dir=os.getcwd())
1717
self.source_path = os.path.join(self.directory, '_test.py')
1818
self.pyc_path = self.source_path + 'c'
1919
self.cache_path = importlib.util.cache_from_source(self.source_path)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Prevent failure of test_relative_path in test_py_compile on macOS Catalina.

0 commit comments

Comments
 (0)