mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case.
This commit is contained in:
parent
6ddd2653ab
commit
e92dfbfec8
2 changed files with 4 additions and 1 deletions
|
@ -382,7 +382,8 @@ class ProcessTestCase(BaseTestCase):
|
||||||
def test_executable_without_cwd(self):
|
def test_executable_without_cwd(self):
|
||||||
# For a normal installation, it should work without 'cwd'
|
# For a normal installation, it should work without 'cwd'
|
||||||
# argument. For test runs in the build directory, see #7774.
|
# 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):
|
def test_stdin_pipe(self):
|
||||||
# stdin redirection
|
# stdin redirection
|
||||||
|
|
|
@ -230,6 +230,8 @@ IDLE
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #17046: Fix broken test_executable_without_cwd in test_subprocess.
|
||||||
|
|
||||||
- Issue #15415: Add new temp_dir() and change_cwd() context managers to
|
- 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.
|
test.support, and refactor temp_cwd() to use them. Patch by Chris Jerdonek.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue