Skip to content

Commit a3a6df3

Browse files
authored
Skip two tests not intended to pass on Windows. (#3202)
1 parent 8621bb5 commit a3a6df3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_subprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,11 +1371,13 @@ def test_failed_child_execute_fd_leak(self):
13711371
fds_after_exception = os.listdir(fd_directory)
13721372
self.assertEqual(fds_before_popen, fds_after_exception)
13731373

1374+
@unittest.skipIf(mswindows, "behavior currently not supported on Windows")
13741375
def test_file_not_found_includes_filename(self):
13751376
with self.assertRaises(FileNotFoundError) as c:
13761377
subprocess.call(['/opt/nonexistent_binary', 'with', 'some', 'args'])
13771378
self.assertEqual(c.exception.filename, '/opt/nonexistent_binary')
13781379

1380+
@unittest.skipIf(mswindows, "behavior currently not supported on Windows")
13791381
def test_file_not_found_with_bad_cwd(self):
13801382
with self.assertRaises(FileNotFoundError) as c:
13811383
subprocess.Popen(['exit', '0'], cwd='/some/nonexistent/directory')

0 commit comments

Comments
 (0)