Skip to content

Commit 79f968f

Browse files
committed
Skip AnyStr tests on Python 3.13+
This is to avoid future deprecation warnings.
1 parent a0f4594 commit 79f968f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_checkers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
P = ParamSpec("P")
8282

8383

84+
@pytest.mark.skipif(
85+
sys.version_info >= (3, 13), reason="AnyStr is deprecated on Python 3.13"
86+
)
8487
class TestAnyStr:
8588
@pytest.mark.parametrize(
8689
"value", [pytest.param("bar", id="str"), pytest.param(b"bar", id="bytes")]

0 commit comments

Comments
 (0)