diff --git a/flepimop/gempyor_pkg/tests/seir/test_model_info.py b/flepimop/gempyor_pkg/tests/seir/test_model_info.py index 81cf69492..baad036b4 100644 --- a/flepimop/gempyor_pkg/tests/seir/test_model_info.py +++ b/flepimop/gempyor_pkg/tests/seir/test_model_info.py @@ -46,7 +46,7 @@ def test_ModelInfo_init_tf_is_ahead_of_ti_fail(self): config["start_date"] = "2022-01-02" with pytest.raises( ValueError, - match=r"Time to finish \('\{self\.tf\}'\) is less than or equal to time to start \('\{self\.ti\}'\)\.", + match=r"Time to finish.*is less than or equal to time to start.*", ): s = ModelInfo( config=config,