diff Lib/test/test_subprocess.py @ 84980:f37b336bfbca 3.3

Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case.
author Ned Deily <nad@acm.org>
date Fri, 02 Aug 2013 18:02:21 -0700
parents 46fe1bb0723c
children 4c52d4bac03c e3e28ee5b5c3
line wrap: on
line diff
--- a/Lib/test/test_subprocess.py	Fri Aug 02 10:21:20 2013 +0200
+++ b/Lib/test/test_subprocess.py	Fri Aug 02 18:02:21 2013 -0700
@@ -382,7 +382,8 @@
     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