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
b063b02eabf91bfd4edc0f3fde7ce8f0ebb392c4)
Co-authored-by: pxinwr <peixing.xin@windriver.com>
Automerge-Triggered-By: GH:gpshead
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')
--- /dev/null
+Ignore error string case in test_py_compile ``test_file_not_exists()``.