Skip to content

Commit 5c4f57c

Browse files
committed
Update test case
1 parent 26588d0 commit 5c4f57c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/expressions/test_interpreter_coverage2.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
# pylint: disable=unused-variable
88

9-
import sys
10-
119
import pytest
1210

1311
from monic.expressions import (
@@ -994,10 +992,7 @@ def test_binary_operation_edge_cases():
994992
"""
995993
tree = parser.parse(code)
996994
result = interpreter.execute(tree)
997-
if sys.version_info < (3, 14):
998-
assert result == "integer division or modulo by zero"
999-
else:
1000-
assert result == "division by zero"
995+
assert "division" in result and "zero" in result
1001996

1002997
# Test power operation with invalid operands
1003998
code = """

0 commit comments

Comments
 (0)