diff --git a/tests/test_errors.py b/tests/test_errors.py index 471cc850a..f0bc6158e 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -1513,11 +1513,11 @@ def div(x: Any, y: Any) -> float: c = OmegaConf.create({"div_by_zero": "${div:1,0}"}) expected_msg = dedent( """\ - ZeroDivisionError raised while resolving interpolation: float division by zero + ZeroDivisionError raised while resolving interpolation: float division( by zero)? full_key: div_by_zero object_type=dict""" ) - with raises(InterpolationResolutionError, match=re.escape(expected_msg)): + with raises(InterpolationResolutionError, match=expected_msg): c.div_by_zero