From 79f968fbcd15a8e5b5be2c05cd4421d654a8505e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sun, 24 Mar 2024 09:57:16 +0200 Subject: [PATCH] Skip AnyStr tests on Python 3.13+ This is to avoid future deprecation warnings. --- tests/test_checkers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_checkers.py b/tests/test_checkers.py index b8e01c6..29b1b01 100644 --- a/tests/test_checkers.py +++ b/tests/test_checkers.py @@ -81,6 +81,9 @@ P = ParamSpec("P") +@pytest.mark.skipif( + sys.version_info >= (3, 13), reason="AnyStr is deprecated on Python 3.13" +) class TestAnyStr: @pytest.mark.parametrize( "value", [pytest.param("bar", id="str"), pytest.param(b"bar", id="bytes")]