Skip to content

Commit 6e7fe19

Browse files
[3.10] bpo-31904: Correct error string in test_file_not_exists() for VxWorks (GH-25965) (GH-25983)
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. (cherry picked from commit b063b02) Co-authored-by: pxinwr <[email protected]> Automerge-Triggered-By: GH:gpshead
1 parent a2c72d5 commit 6e7fe19

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_py_compile ``test_file_not_exists()``.

0 commit comments

Comments
 (0)