Skip to content

Commit 5f2c134

Browse files
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)
(cherry picked from commit bf3aa10) Co-authored-by: Ned Deily <nad@python.org>
1 parent 052f47e commit 5f2c134

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/test/test_py_compile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
classPyCompileTests(unittest.TestCase):
1111

1212
defsetUp(self):
13-
self.directory=tempfile.mkdtemp()
13+
self.directory=tempfile.mkdtemp(dir=os.getcwd())
1414
self.source_path=os.path.join(self.directory, '_test.py')
1515
self.pyc_path=self.source_path+'c'
1616
self.cwd_drive=os.path.splitdrive(os.getcwd())[0]
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)
close