From 6d6b4de9940071eacbd83430b3d42207a2ac49ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sun, 3 Nov 2024 13:46:14 +0200 Subject: [PATCH] Fixed test_raw_uniontype_fail failing on PyPy --- tests/test_checkers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_checkers.py b/tests/test_checkers.py index 8653535..23e01aa 100644 --- a/tests/test_checkers.py +++ b/tests/test_checkers.py @@ -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)