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.
This commit is contained in:
pxinwr 2021-05-08 16:03:41 +08:00 committed by GitHub
parent 80d250d68c
commit b063b02eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -276,7 +276,7 @@ class PyCompileCLITestCase(unittest.TestCase):
rc, stdout, stderr = self.pycompilecmd_failure(self.source_path, should_not_exists)
self.assertEqual(rc, 1)
self.assertEqual(stdout, b'')
self.assertIn(b'No such file or directory', stderr)
self.assertIn(b'no such file or directory', stderr.lower())
def test_file_not_exists_with_quiet(self):
should_not_exists = os.path.join(os.path.dirname(__file__), 'should_not_exists.py')