summaryrefslogtreecommitdiff
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-08-02 18:02:21 -0700
committerNed Deily <nad@acm.org>2013-08-02 18:02:21 -0700
commite92dfbfec8db930c5960492c3d9470f3415e27a3 (patch)
tree8808fddfed5ca46526eaa4b2066e383f98b07f53 /Lib/test/test_subprocess.py
parent6ddd2653ab28516abe04fd953a26c69429eb70b2 (diff)
downloadcpython-git-e92dfbfec8db930c5960492c3d9470f3415e27a3.tar.gz
Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py3
1 files changed, 2 insertions, 1 deletions
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