8000 bpo-38295: prevent test_relative_path of test_py_compile failure on m… · miss-islington/cpython@785146d · GitHub
[go: up one dir, main page]

Skip to content

Commit 785146d

Browse files
ned-deilymiss-islington
authored andcommitted
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (pythonGH-17636)
(cherry picked from commit bf3aa10) Co-authored-by: Ned Deily <nad@python.org>
1 parent 7699281 commit 785146d

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)
0