From: Ned Deily Date: Sat, 3 Aug 2013 01:02:21 +0000 (-0700) Subject: Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case. X-Git-Tag: v3.4.0a1~7^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e92dfbfec8db930c5960492c3d9470f3415e27a3;p=python Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case. --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 4b90471093..0aa4d21e31 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -382,7 +382,8 @@ class ProcessTestCase(BaseTestCase): def test_executable_without_cwd(self): # For a normal installation, it should work without 'cwd' # argument. For test runs in the build directory, see #7774. - self._assert_cwd('', "somethingyoudonthave", executable=sys.executable) + self._assert_cwd(os.getcwd(), "somethingyoudonthave", + executable=sys.executable) def test_stdin_pipe(self): # stdin redirection diff --git a/Misc/NEWS b/Misc/NEWS index f0cbca20e7..98357a4411 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -230,6 +230,8 @@ IDLE Tests ----- +- Issue #17046: Fix broken test_executable_without_cwd in test_subprocess. + - Issue #15415: Add new temp_dir() and change_cwd() context managers to test.support, and refactor temp_cwd() to use them. Patch by Chris Jerdonek.