summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_py_compile.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-17 09:26:11 (GMT)
committerNed Deily <nad@python.org>2019-12-17 09:26:11 (GMT)
commit5a9b69732ec19b04de459af890bcc26b83d979c5 (patch)
tree55f8ad09136a95b88dd51e3d08fbfca2b5f9c040 /Lib/test/test_py_compile.py
parent7699281b72b862797a89fcad004da8f58e93c800 (diff)
downloadcpython-5a9b69732ec19b04de459af890bcc26b83d979c5.zip
cpython-5a9b69732ec19b04de459af890bcc26b83d979c5.tar.gz
cpython-5a9b69732ec19b04de459af890bcc26b83d979c5.tar.bz2
bpo-38295: prevent test_relative_path of test_py_compile failure on macOS Catalina (GH-17636) (GH-17638)
(cherry picked from commit bf3aa1060a29a05813abbe877193af16e3e7131e) Co-authored-by: Ned Deily <nad@python.org>
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 4a6caa5..5e35b8d 100644
--- a/Lib/test/test_py_compile.py
+++ b/Lib/test/test_py_compile.py
@@ -13,7 +13,7 @@ from test import support
class PyCompileTests(unittest.TestCase):
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)