diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-17 01:16:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-17 01:16:33 -0800 |
commit | 5f2c1345a79f205c680ed6e0a6ed44199546d79e (patch) | |
tree | 4bf1b452c8a35d9cf237f01782b4ac650a3cde14 | |
parent | bpo-38730: Replace strncpy in import.c with memcpy. (GH-17633) (diff) | |
download | cpython-5f2c1345a79f205c680ed6e0a6ed44199546d79e.tar.gz cpython-5f2c1345a79f205c680ed6e0a6ed44199546d79e.tar.bz2 cpython-5f2c1345a79f205c680ed6e0a6ed44199546d79e.zip |
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.py | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/macOS/2019-12-17-03-43-04.bpo-38295.hgDvlB.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py index 5ec523abe25..95863088b48 100644 --- a/Lib/test/test_py_compile.py +++ b/Lib/test/test_py_compile.py @@ -10,7 +10,7 @@ from test import test_support as 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.cwd_drive = os.path.splitdrive(os.getcwd())[0] 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 00000000000..cc9ceb4cc50 --- /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. |