diff options
author | pxinwr <peixing.xin@windriver.com> | 2021-05-08 08:03:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 08:03:41 (GMT) |
commit | b063b02eabf91bfd4edc0f3fde7ce8f0ebb392c4 (patch) | |
tree | b2914debf932e995113723426141f2bdbe8aaa14 /Lib/test | |
parent | 80d250d68cf3bb511fd862169c681b28028499c2 (diff) | |
download | cpython-b063b02eabf91bfd4edc0f3fde7ce8f0ebb392c4.zip cpython-b063b02eabf91bfd4edc0f3fde7ce8f0ebb392c4.tar.gz cpython-b063b02eabf91bfd4edc0f3fde7ce8f0ebb392c4.tar.bz2 |
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.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_py_compile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py index b58f28a..5ed98db 100644 --- a/Lib/test/test_py_compile.py +++ b/Lib/test/test_py_compile.py @@ -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') |