Skip to content

Commit

Permalink
Skip AnyStr tests on Python 3.13+
Browse files Browse the repository at this point in the history
This is to avoid future deprecation warnings.
  • Loading branch information
agronholm committed Mar 24, 2024
1 parent a0f4594 commit 79f968f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_checkers.py
Expand Up @@ -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")]
Expand Down

0 comments on commit 79f968f

Please sign in to comment.