diff --git a/testing/test_reports.py b/testing/test_reports.py index 9e4e7d09d..81778e27d 100644 --- a/testing/test_reports.py +++ b/testing/test_reports.py @@ -401,9 +401,7 @@ class TestReportSerialization: sub_dir.join("conftest").new(ext=".py").write("import unknown") result = testdir.runpytest_subprocess(".") - result.stdout.fnmatch_lines( - ["E ModuleNotFoundError: No module named 'unknown'"] - ) + result.stdout.fnmatch_lines(["E *Error: No module named 'unknown'"]) result.stdout.no_fnmatch_line("ERROR - *ConftestImportFailure*")