Skip to content

Commit

Permalink
use version_info over version
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jul 22, 2024
1 parent a2d2328 commit f351cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypy/test/teststubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ class TestClass(argparse.Action):
assert_equal(output, ["class C(argparse.Action): ..."])
assert_equal(gen.get_imports().splitlines(), ["import argparse"])

@unittest.skipIf(sys.version < (3, 12), "Inline Generics not supported before Python3.12")
@unittest.skipIf(sys.version_info < (3, 12), "Inline Generics not supported before Python3.12")
def test_inline_generic_class(self) -> None:
T = TypeVar("T")

Expand All @@ -944,7 +944,7 @@ class TestClass:
gen.generate_class_stub("C", TestClass, output)
assert_equal(output, ["class C[T]: ..."])

@unittest.skipIf(sys.version < (3, 12), "Inline Generics not supported before Python3.12")
@unittest.skipIf(sys.version_info < (3, 12), "Inline Generics not supported before Python3.12")
def test_inline_generic_function(self) -> None:
T = TypeVar("T", bound=int)

Expand Down

0 comments on commit f351cdb

Please sign in to comment.