@@ -192,28 +192,6 @@ def test_stderr_none(self):
192192 p .wait ()
193193 self .assertEqual (p .stderr , None )
194194
195- @unittest .skipIf (mswindows , "path not included in Windows message" )
196- def test_path_in_arg_not_found_message (self ):
197- # Check that the error message displays the path not found when
198- # args[0] is not found.
199- self .assertRaisesRegex (FileNotFoundError , "notfound_blahblah" ,
200- subprocess .Popen , ["notfound_blahblah" ])
201-
202- @unittest .skipIf (mswindows , "path not displayed in Windows message" )
203- def test_path_in_executable_not_found_message (self ):
204- # Check that the error message displays the executable argument (and
205- # not args[0]) when the executable argument is not found
206- # (issue #16114).
207- # We call sys.exit() inside the code to prevent the test runner
208- # from hanging if the test fails and finds python.
209- self .assertRaisesRegex (FileNotFoundError , "notfound_blahblah" ,
210- subprocess .Popen , [sys .executable , "-c" ,
211- "import sys; sys.exit(47)" ],
212- executable = "notfound_blahblah" )
213- self .assertRaisesRegex (FileNotFoundError , "exenotfound_blahblah" ,
214- subprocess .Popen , ["argnotfound_blahblah" ],
215- executable = "exenotfound_blahblah" )
216-
217195 # For use in the test_cwd* tests below.
218196 def _normalize_cwd (self , cwd ):
219197 # Normalize an expected cwd (for Tru64 support).
0 commit comments