Skip to content

Commit

Permalink
Regex update in test_random_distribution_sampler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emprzy committed Nov 18, 2024
1 parent 8ec6c05 commit d760ddc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d760ddc

Please sign in to comment.