Skip to content

Commit 4092346

Browse files
authored
Update subprocess.py to 3.14.3 (RustPython#7244)
1 parent 0e48ca9 commit 4092346

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ def _communicate(self, input, endtime, orig_timeout):
21412141

21422142
while selector.get_map():
21432143
timeout = self._remaining_time(endtime)
2144-
if timeout is not None and timeout < 0:
2144+
if timeout is not None and timeout <= 0:
21452145
self._check_timeout(endtime, orig_timeout,
21462146
stdout, stderr,
21472147
skip_check_and_raise=True)

Lib/test/test_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ def test_run_with_pathlike_path_and_arguments(self):
19031903
res = subprocess.run(args)
19041904
self.assertEqual(res.returncode, 57)
19051905

1906-
@unittest.skipIf(mswindows, 'TODO: RUSTPYTHON; empty env block fails nondeterministically')
1906+
@unittest.skipIf(mswindows, "TODO: RUSTPYTHON; empty env block fails nondeterministically")
19071907
@unittest.skipUnless(mswindows, "Maybe test trigger a leak on Ubuntu")
19081908
def test_run_with_an_empty_env(self):
19091909
# gh-105436: fix subprocess.run(..., env={}) broken on Windows

0 commit comments

Comments
 (0)