Skip to content

Commit

Permalink
bpo-38295: prevent test_relative_path of test_py_compile failure on m…
Browse files Browse the repository at this point in the history
…acOS Catalina (GH-17636)

(cherry picked from commit bf3aa10)

Co-authored-by: Ned Deily <nad@python.org>
  • Loading branch information
miss-islington and ned-deily committed Dec 17, 2019
1 parent c70c8ca commit 3dbfe0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_py_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __new__(mcls, name, bases, dct, *, source_date_epoch):
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)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Prevent failure of test_relative_path in test_py_compile on macOS Catalina.

0 comments on commit 3dbfe0a

Please sign in to comment.