diff --git a/force_bdss/tests/test_core_evaluation_driver.py b/force_bdss/tests/test_core_evaluation_driver.py
index 1b09402d1643b117e7caa69d7da94d627a2edca2..734a08b173a09e35af26cc4a51d4593ced39600d 100644
--- a/force_bdss/tests/test_core_evaluation_driver.py
+++ b/force_bdss/tests/test_core_evaluation_driver.py
@@ -88,7 +88,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
                     self,
                     RuntimeError,
                     "The run method of data source test_data_source must"
-                    " return a list. It returned instead <type 'str'>. Fix"
+                    " return a list. It returned instead <.* 'str'>. Fix"
                     " the run\(\) method to return the appropriate entity."):
                 driver.application_started()
 
@@ -104,7 +104,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
                     RuntimeError,
                     "The result list returned by DataSource test_data_source"
                     " contains an entry that is not a DataValue."
-                    " An entry of type <type 'str'> was instead found"
+                    " An entry of type <.* 'str'> was instead found"
                     " in position 0."
                     " Fix the DataSource.run\(\) method to"
                     " return the appropriate entity."