MCPcopy Create free account
hub / github.com/python/cpython / bad_eq

Class bad_eq

Lib/test/test_set.py:1852–1859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1850 self.assertRaises(ZeroDivisionError, getattr(set('january'), methname), E(data))
1851
1852class bad_eq:
1853 def __eq__(self, other):
1854 if be_bad:
1855 set2.clear()
1856 raise ZeroDivisionError
1857 return self is other
1858 def __hash__(self):
1859 return 0
1860
1861class bad_dict_clear:
1862 def __eq__(self, other):

Callers 1

test_8420_set_mergeMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_8420_set_mergeMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…