Skip to content

Commit

Permalink
test_errors.py: Accomodate pypy ZeroDivisionError message (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed Jun 30, 2021
1 parent 155d5c4 commit 4f07faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4f07faa

Please sign in to comment.