Skip to content

Commit cf0b85e

Browse files
committed
Fix tests on Python >=3.11
1 parent ed95f81 commit cf0b85e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test_typing_extensions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6675,6 +6675,10 @@ def test_type_var_inheritance(self):
66756675
self.assertFalse(isinstance(Unpack[Ts], TypeVar))
66766676
self.assertFalse(isinstance(Unpack[Ts], typing.TypeVar))
66776677

6678+
@skipUnless(
6679+
sys.version_info < (3, 11),
6680+
"_UnpackAlias only uses __class__ trick Python <3.11"
6681+
)
66786682
def test_isinstance_results_unaffected_by_presence_of_tracing_function(self):
66796683
# See https://github.com/python/typing_extensions/issues/661
66806684

0 commit comments

Comments
 (0)