From ffdba91b2879a4100e4e98dd8ed92276c0ccc97d Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 9 Jun 2024 12:38:25 +0100 Subject: [PATCH] remove redundant assertions in test --- Lib/test/test_typing.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 1d8dd16d40fcdb..2ae9f894fa3d9f 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4869,8 +4869,6 @@ def test_pep695_generic_with_future_annotations(self): self.assertEqual(hints_for_B, {"x": int, "y": str, "z": bytes}) hints_for_C = get_type_hints(ann_module695.C) - self.assertNotIn(int, hints_for_C.values()) - self.assertNotIn(str, hints_for_C.values()) self.assertEqual( set(hints_for_C.values()), set(ann_module695.C.__type_params__) @@ -4887,8 +4885,6 @@ def test_pep695_generic_with_future_annotations(self): self.assertIs(hints_for_generic_function["zz"].__origin__, func_t_params[2]) hints_for_generic_method = get_type_hints(ann_module695.D.generic_method) - self.assertNotIn(int, hints_for_generic_method.values()) - self.assertNotIn(str, hints_for_generic_method.values()) params = { param.__name__: param for param in ann_module695.D.generic_method.__type_params__