Skip to content

Commit 26588d0

Browse files
committed
Fix test failure in Python 3.14
1 parent 802342a commit 26588d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/expressions/test_interpreter_coverage2.py

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

77
# pylint: disable=unused-variable
88

9+
import sys
10+
911
import pytest
1012

1113
from monic.expressions import (
@@ -992,7 +994,10 @@ def test_binary_operation_edge_cases():
992994
"""
993995
tree = parser.parse(code)
994996
result = interpreter.execute(tree)
995-
assert result == "integer division or modulo by zero"
997+
if sys.version_info < (3, 14):
998+
assert result == "integer division or modulo by zero"
999+
else:
1000+
assert result == "division by zero"
9961001

9971002
# Test power operation with invalid operands
9981003
code = """

0 commit comments

Comments
 (0)