Skip to content

Commit

Permalink
Fixed test_raw_uniontype_fail failing on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Nov 3, 2024
1 parent 05a6772 commit 6d6b4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ def test_raw_uniontype_success(self):
@pytest.mark.skipif(sys.version_info < (3, 10), reason="UnionType requires 3.10")
def test_raw_uniontype_fail(self):
with pytest.raises(
TypeCheckError, match="class str is not an instance of types.UnionType"
TypeCheckError, match=r"class str is not an instance of \w+\.UnionType$"
):
check_type(str, types.UnionType)

Expand Down

0 comments on commit 6d6b4de

Please sign in to comment.