Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 582583b

Browse files
committed
Issue #17046: merge from 3.3
2 parents 95db2e7 + e92dfbf commit 582583b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/test/test_subprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ def test_executable_with_cwd(self):
416416
def test_executable_without_cwd(self):
417417
# For a normal installation, it should work without 'cwd'
418418
# argument. For test runs in the build directory, see #7774.
419-
self._assert_cwd('', "somethingyoudonthave", executable=sys.executable)
419+
self._assert_cwd(os.getcwd(), "somethingyoudonthave",
420+
executable=sys.executable)
420421

421422
def test_stdin_pipe(self):
422423
# stdin redirection

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ Library
599599
Tests
600600
-----
601601

602+
- Issue #17046: Fix broken test_executable_without_cwd in test_subprocess.
603+
602604
- Issue #15415: Add new temp_dir() and change_cwd() context managers to
603605
test.support, and refactor temp_cwd() to use them. Patch by Chris Jerdonek.
604606

0 commit comments

Comments
 (0)