[Python-checkins] Skip two tests not intended to pass on Windows. (#3202)

Gregory P. Smith webhook-mailer at python.org
Thu Aug 24 21:15:05 EDT 2017


https://github.com/python/cpython/commit/a3a6df36b6e0d1d560f8fb2a4873d5b97329c454
commit: a3a6df36b6e0d1d560f8fb2a4873d5b97329c454
branch: master
author: Gregory P. Smith <greg at krypto.org>
committer: GitHub <noreply at github.com>
date: 2017-08-24T18:15:02-07:00
summary:

Skip two tests not intended to pass on Windows. (#3202)

files:
M Lib/test/test_subprocess.py

diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index ac70597ddbd..7d0708d5f7f 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1371,11 +1371,13 @@ def test_failed_child_execute_fd_leak(self):
         fds_after_exception = os.listdir(fd_directory)
         self.assertEqual(fds_before_popen, fds_after_exception)
 
+    @unittest.skipIf(mswindows, "behavior currently not supported on Windows")
     def test_file_not_found_includes_filename(self):
         with self.assertRaises(FileNotFoundError) as c:
             subprocess.call(['/opt/nonexistent_binary', 'with', 'some', 'args'])
         self.assertEqual(c.exception.filename, '/opt/nonexistent_binary')
 
+    @unittest.skipIf(mswindows, "behavior currently not supported on Windows")
     def test_file_not_found_with_bad_cwd(self):
         with self.assertRaises(FileNotFoundError) as c:
             subprocess.Popen(['exit', '0'], cwd='/some/nonexistent/directory')



More information about the Python-checkins mailing list