diff --git a/tests/fixtures/type_alias_310_fixed.py b/tests/fixtures/type_alias_310_fixed.py deleted file mode 100644 index 0ae8391a..00000000 --- a/tests/fixtures/type_alias_310_fixed.py +++ /dev/null @@ -1,3 +0,0 @@ -"""Type Alias requires Python 3.10+""" - -Alias = int | str diff --git a/tests/fixtures/type_alias_310.py b/tests/fixtures/type_alias_312.py similarity index 56% rename from tests/fixtures/type_alias_310.py rename to tests/fixtures/type_alias_312.py index 64a94153..5a151015 100644 --- a/tests/fixtures/type_alias_310.py +++ b/tests/fixtures/type_alias_312.py @@ -1,4 +1,4 @@ -"""Type Alias requires Python 3.10+""" +"""Type Alias requires Python 3.12+""" from typing import Union Alias = Union[int, str] diff --git a/tests/fixtures/type_alias_312_fixed.py b/tests/fixtures/type_alias_312_fixed.py new file mode 100644 index 00000000..8b7c595a --- /dev/null +++ b/tests/fixtures/type_alias_312_fixed.py @@ -0,0 +1,3 @@ +"""Type Alias requires Python 3.12+""" + +type Alias = int | str diff --git a/tests/test_main.py b/tests/test_main.py index c72b195c..247665db 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -135,10 +135,10 @@ async def test_py_version( id="type_alias_pep585_39_updated", ), pytest.param( - 'type_alias_310.py', 'type_alias_310_fixed.py', - None, 0, - id="type_alias_pep604_310_updated", - marks=pytest.mark.xfail(reason="Not implented in mypy + pyupgrade (yet)"), + 'type_alias_312.py', 'type_alias_312_fixed.py', + ['--py312-plus'], 0, + id="type_alias_pep604_312_updated", + marks=pytest.mark.xfail(reason="Not implented in pyupgrade (yet)"), ), ), )