diff --git a/test/test_core.py b/test/test_core.py index de9c4883dfacd..d24800252a779 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -3103,7 +3103,7 @@ def test_dlfcn_missing(self): if self.js_engines == [config.V8_ENGINE]: expected = "error: Could not load dynamic lib: libfoo.so\nError: Error reading file" else: - expected = "error: Could not load dynamic lib: libfoo.so\nError: ENOENT: no such file or directory, open 'libfoo.so'" + expected = "error: Could not load dynamic lib: libfoo.so\nError: ENOENT: no such file or directory" self.do_run(src, expected) @needs_dylink