Skip to content

Commit ac52ac5

Browse files
authored
Remove duplicate test (#123)
This method is identical to `test_hash_eq` on lines 2296-2304: https://github.com/python/typing_extensions/blob/a0858e6ba9b46996f3f74dde8749ab86e1561012/src/test_typing_extensions.py#L2296-L2304 (This is a backport of the only relevant part of python/cpython#102445)
1 parent a0858e6 commit ac52ac5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/test_typing_extensions.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,16 +2368,6 @@ class C:
23682368
get_type_hints(C, globals())["const"], Annotated[Final[int], "Const"]
23692369
)
23702370

2371-
def test_hash_eq(self):
2372-
self.assertEqual(len({Annotated[int, 4, 5], Annotated[int, 4, 5]}), 1)
2373-
self.assertNotEqual(Annotated[int, 4, 5], Annotated[int, 5, 4])
2374-
self.assertNotEqual(Annotated[int, 4, 5], Annotated[str, 4, 5])
2375-
self.assertNotEqual(Annotated[int, 4], Annotated[int, 4, 4])
2376-
self.assertEqual(
2377-
{Annotated[int, 4, 5], Annotated[int, 4, 5], Annotated[T, 4, 5]},
2378-
{Annotated[int, 4, 5], Annotated[T, 4, 5]}
2379-
)
2380-
23812371
def test_cannot_subclass(self):
23822372
with self.assertRaisesRegex(TypeError, "Cannot subclass .*Annotated"):
23832373
class C(Annotated):

0 commit comments

Comments
 (0)