Skip to content

Commit

Permalink
Remove incorrect hash tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uriyyo committed Nov 19, 2020
1 parent 357a71d commit 85a21a8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,6 @@ def test_equal(self):
self.assertEqual(Literal[1, 2, 3], Literal[1, 2, 3, 3])

def test_hash(self):
self.assertNotEqual(hash(Literal[0]), hash(Literal[False]))
self.assertNotEqual(hash(Literal[True]), hash(Literal[1]))
self.assertNotEqual(hash(Literal[1]), hash(Literal[2]))
self.assertNotEqual(hash(Literal[1, True]), hash(Literal[1]))
self.assertEqual(hash(Literal[1]), hash(Literal[1]))
self.assertEqual(hash(Literal[1, 2]), hash(Literal[2, 1]))
self.assertEqual(hash(Literal[1, 2, 3]), hash(Literal[1, 2, 3, 3]))
Expand Down

0 comments on commit 85a21a8

Please sign in to comment.