mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
80d250d68c
commit
b063b02eab
2 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue