]> granicus.if.org Git - python/commitdiff
Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case.
authorNed Deily <nad@acm.org>
Sat, 3 Aug 2013 01:02:21 +0000 (18:02 -0700)
committerNed Deily <nad@acm.org>
Sat, 3 Aug 2013 01:02:21 +0000 (18:02 -0700)
Lib/test/test_subprocess.py
Misc/NEWS

index 4b904710931a285c9f9ea5d10338a2dba3d81f36..0aa4d21e31636b1326167e2f64ed64b4ee9d9034 100644 (file)
@@ -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
index f0cbca20e7b300adc20e30a8286dc2e587f534fc..98357a4411bd402a9a0bbae47ebda67cfabf7442 100644 (file)
--- 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.