Skip to content

Commit

Permalink
tests: Try xfail for 3.12-only test
Browse files Browse the repository at this point in the history
  • Loading branch information
seandstewart committed Jun 19, 2024
1 parent 7c08c8c commit 79952ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/unmarshal/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import fractions
import pathlib
import re
import sys
import typing
import uuid

Expand Down Expand Up @@ -139,9 +140,10 @@ def test_unmarshal(given_type, given_input, expected_output):
assert output == expected_output


@pytest.mark.skipif(
"sys.version_info < (3, 12)",
@pytest.mark.xfail(
sys.version_info < (3, 12),
reason="TypeAliasType is only available from Python 3.12",
run=False,
)
def test_type_alias_type_unmarshal():
# Given
Expand Down

0 comments on commit 79952ce

Please sign in to comment.