From 4993aca709ecbbb33d6fb21b183519eba092b911 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 9 Oct 2026 20:57:36 +0200 Subject: [PATCH 1/3] Update test fail notice --- tests/test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_main.py b/tests/test_main.py index c72b195..774f0ca 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -138,7 +138,7 @@ async def test_py_version( '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)"), + marks=pytest.mark.xfail(reason="Not implented in pyupgrade (yet)"), ), ), ) From 2e8428aff2bd46e9793eaadcba07bc054100c2a2 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 9 Oct 2026 21:02:41 +0200 Subject: [PATCH 2/3] Update test case --- tests/fixtures/type_alias_310_fixed.py | 3 --- tests/fixtures/{type_alias_310.py => type_alias_312.py} | 2 +- tests/fixtures/type_alias_312_fixed.py | 3 +++ tests/test_main.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 tests/fixtures/type_alias_310_fixed.py rename tests/fixtures/{type_alias_310.py => type_alias_312.py} (56%) create mode 100644 tests/fixtures/type_alias_312_fixed.py diff --git a/tests/fixtures/type_alias_310_fixed.py b/tests/fixtures/type_alias_310_fixed.py deleted file mode 100644 index 0ae8391..0000000 --- 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 64a9415..5a15101 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 0000000..8b7c595 --- /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 774f0ca..1310863 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -135,8 +135,8 @@ async def test_py_version( id="type_alias_pep585_39_updated", ), pytest.param( - 'type_alias_310.py', 'type_alias_310_fixed.py', - None, 0, + 'type_alias_312.py', 'type_alias_312_fixed.py', + ['--py312-plus'], 0, id="type_alias_pep604_310_updated", marks=pytest.mark.xfail(reason="Not implented in pyupgrade (yet)"), ), From 8ad90744d3b527645abd6227672e429fbe562b88 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 9 Oct 2026 21:03:42 +0200 Subject: [PATCH 3/3] Minor --- tests/test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_main.py b/tests/test_main.py index 1310863..247665d 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -137,7 +137,7 @@ async def test_py_version( pytest.param( 'type_alias_312.py', 'type_alias_312_fixed.py', ['--py312-plus'], 0, - id="type_alias_pep604_310_updated", + id="type_alias_pep604_312_updated", marks=pytest.mark.xfail(reason="Not implented in pyupgrade (yet)"), ), ),