diff --git a/flepimop/gempyor_pkg/tests/utils/test_random_distribution_sampler.py b/flepimop/gempyor_pkg/tests/utils/test_random_distribution_sampler.py index 41846a632..5283babbc 100644 --- a/flepimop/gempyor_pkg/tests/utils/test_random_distribution_sampler.py +++ b/flepimop/gempyor_pkg/tests/utils/test_random_distribution_sampler.py @@ -22,7 +22,7 @@ def test_not_implemented_error_exception(self, distribution: str) -> None: def test_binomial_p_value_error(self, p: float) -> None: with pytest.raises( ValueError, - match=rf"^p value {p} is out of range \[0\,1\]$", + match=r"^Invalid\s`p-value`.*\s'is\sout\sof\srange.*'", ): random_distribution_sampler("binomial", n=100, p=p)