Skip to content

Commit b063b02

Browse files
authored
bpo-31904: Correct error string in test_file_not_exists() for VxWorks (GH-25965)
The error string on VxWorks is "no such file or directory" for FileNotFoundError. That is, the 1st letter of the error string has lower case.
1 parent 80d250d commit b063b02

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/test/test_py_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def test_file_not_exists(self):
276276
rc, stdout, stderr = self.pycompilecmd_failure(self.source_path, should_not_exists)
277277
self.assertEqual(rc, 1)
278278
self.assertEqual(stdout, b'')
279-
self.assertIn(b'No such file or directory', stderr)
279+
self.assertIn(b'no such file or directory', stderr.lower())
280280

281281
def test_file_not_exists_with_quiet(self):
282282
should_not_exists = os.path.join(os.path.dirname(__file__), 'should_not_exists.py')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ignore error string case in test_file_not_exists().

0 commit comments

Comments
 (0)