]> granicus.if.org Git - python/commitdiff
Skip two tests not intended to pass on Windows. (#3202)
authorGregory P. Smith <greg@krypto.org>
Fri, 25 Aug 2017 01:15:02 +0000 (18:15 -0700)
committerGitHub <noreply@github.com>
Fri, 25 Aug 2017 01:15:02 +0000 (18:15 -0700)
Lib/test/test_subprocess.py

index ac70597ddbd639603116698d4daaf26561217d18..7d0708d5f7fe64a3f928e1b0ac7897dea8277170 100644 (file)
@@ -1371,11 +1371,13 @@ class ProcessTestCase(BaseTestCase):
         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')