Skip to content

Commit

Permalink
use canonical way of defining unhashable type
Browse files Browse the repository at this point in the history
  • Loading branch information
JONEMI21 committed Feb 5, 2025
1 parent 4eecd19 commit 5a0b968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/validators/test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ def test_list_with_unhashable_items():
v = SchemaValidator({'type': 'set'})

class Unhashable:
def __hash__(self):
raise TypeError('unhashable type')
__hash__ = None

unhashable = Unhashable()

Expand Down

0 comments on commit 5a0b968

Please sign in to comment.