mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[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 b063b02eab
)
Co-authored-by: pxinwr <peixing.xin@windriver.com>
Automerge-Triggered-By: GH:gpshead
This commit is contained in:
parent
a2c72d52dd
commit
6e7fe19016
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')
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Ignore error string case in test_py_compile ``test_file_not_exists()``.
|
Loading…
Add table
Add a link
Reference in a new issue