summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_py_compile.py
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2019-12-17 09:05:41 (GMT)
committerGitHub <noreply@github.com>2019-12-17 09:05:41 (GMT)
commitbf3aa1060a29a05813abbe877193af16e3e7131e (patch)
treeff83353771aa3c4b8e5368c6d04d5360c17febe0 /Lib/test/test_py_compile.py
parentd21ad67d5ec7a08e760231c967f4d8b0c148d18f (diff)
downloadcpython-bf3aa1060a29a05813abbe877193af16e3e7131e.zip
cpython-bf3aa1060a29a05813abbe877193af16e3e7131e.tar.gz
cpython-bf3aa1060a29a05813abbe877193af16e3e7131e.tar.bz2
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636)
Diffstat (limited to 'Lib/test/test_py_compile.py')
-rw-r--r--Lib/test/test_py_compile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py
index d6677ab..d4a68c9 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)