Skip to content

Commit

Permalink
py: tests: make tests run under PyPy (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
zougloub committed Feb 23, 2023
1 parent b348312 commit 26051dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py/tests/test_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import gc
import math
import operator
import sys
from typing import Tuple

import pytest
Expand Down Expand Up @@ -264,4 +265,7 @@ def test_expression_rich_compare_operations(op, symbol) -> None:
else:
with pytest.raises(TypeError) as excinfo:
op(e1, e2)
assert "kiwisolver.Expression" in excinfo.exconly()
if "PyPy" in sys.version:
assert "Expression" in excinfo.exconly()
else:
assert "kiwisolver.Expression" in excinfo.exconly()

0 comments on commit 26051dd

Please sign in to comment.