8000 Remove incorrect hash tests · python/cpython@85a21a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85a21a8

Browse files
committed
Remove incorrect hash tests
1 parent 357a71d commit 85a21a8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Lib/test/test_typing.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,6 @@ def test_equal(self):
570570
self.assertEqual(Literal[1, 2, 3], Literal[1, 2, 3, 3])
571571

572572
def test_hash(self):
573-
self.assertNotEqual(hash(Literal[0]), hash(Literal[False]))
574-
self.assertNotEqual(hash(Literal[True]), hash(Literal[1]))
575-
self.assertNotEqual(hash(Literal[1]), hash(Literal[2]))
576-
self.assertNotEqual(hash(Literal[1, True]), hash(Literal[1]))
577573
self.assertEqual(hash(Literal[1]), hash(Literal[1]))
578574
self.assertEqual(hash(Literal[1, 2]), hash(Literal[2, 1]))
579575
self.assertEqual(hash(Literal[1, 2, 3]), hash(Literal[1, 2, 3, 3]))

0 commit comments

Comments
 (0)
0