summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-17 01:23:55 -0800
committerNed Deily <nad@python.org>2019-12-18 13:39:27 -0500
commit13ee023c03caf85101778b9323cdffbad695a4e0 (patch)
tree7345617d3f5cf32397bc9c1ea9be0c99e0e3ceec
parent9346209be4ef53bde3d0c16d72e9abc7bd0262de (diff)
downloadcpython-git-13ee023c03caf85101778b9323cdffbad695a4e0.tar.gz
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)
(cherry picked from commit bf3aa1060a29a05813abbe877193af16e3e7131e) Co-authored-by: Ned Deily <nad@python.org>
-rw-r--r--Lib/test/test_py_compile.py2
-rw-r--r--Misc/NEWS.d/next/macOS/2019-12-17-03-43-04.bpo-38295.hgDvlB.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py
index f86abe26f9..df45764f04 100644
--- a/Lib/test/test_py_compile.py
+++ b/Lib/test/test_py_compile.py
@@ -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)
diff --git a/Misc/NEWS.d/next/macOS/2019-12-17-03-43-04.bpo-38295.hgDvlB.rst b/Misc/NEWS.d/next/macOS/2019-12-17-03-43-04.bpo-38295.hgDvlB.rst
new file mode 100644
index 0000000000..cc9ceb4cc5
--- /dev/null
+++ b/Misc/NEWS.d/next/macOS/2019-12-17-03-43-04.bpo-38295.hgDvlB.rst
@@ -0,0 +1 @@
+Prevent failure of test_relative_path in test_py_compile on macOS Catalina.