91ca3d7
diff --git a/testing/test_doctest.py b/testing/test_doctest.py
91ca3d7
index 4ea2cc5..a82071c 100644
91ca3d7
--- a/testing/test_doctest.py
91ca3d7
+++ b/testing/test_doctest.py
91ca3d7
@@ -211,8 +211,8 @@ class TestDoctests:
91ca3d7
         # doctest is never executed because of error during hello.py collection
91ca3d7
         result.stdout.fnmatch_lines([
91ca3d7
             "*>>> import asdals*",
91ca3d7
-            "*UNEXPECTED*ImportError*",
91ca3d7
-            "ImportError: No module named *asdal*",
91ca3d7
+            "*UNEXPECTED*Error*",
91ca3d7
+            "*Error: No module named *asdal*",
91ca3d7
         ])
91ca3d7
 
91ca3d7
     def test_doctest_unex_importerror_with_module(self, testdir):
91ca3d7
@@ -227,7 +227,7 @@ class TestDoctests:
91ca3d7
         # doctest is never executed because of error during hello.py collection
91ca3d7
         result.stdout.fnmatch_lines([
91ca3d7
             "*ERROR collecting hello.py*",
91ca3d7
-            "*ImportError: No module named *asdals*",
91ca3d7
+            "*Error: No module named *asdals*",
91ca3d7
             "*Interrupted: 1 errors during collection*",
91ca3d7
         ])
91ca3d7