MCPcopy Index your code
hub / github.com/python/cpython / MySet

Class MySet

Lib/test/test_collections.py:1426–1432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1424 self.assertIsSubclass(sample, Set)
1425 self.validate_abstract_methods(Set, '__contains__', '__iter__', '__len__')
1426 class MySet(Set):
1427 def __contains__(self, x):
1428 return False
1429 def __len__(self):
1430 return 0
1431 def __iter__(self):
1432 return iter([])
1433 self.validate_comparison(MySet())
1434
1435 def test_hash_Set(self):

Callers 5

test_SetMethod · 0.70
test_isdisjoint_SetMethod · 0.70
test_equality_SetMethod · 0.70
test_arithmetic_SetMethod · 0.70
test_issue_4920Method · 0.70

Calls

no outgoing calls

Tested by 5

test_SetMethod · 0.56
test_isdisjoint_SetMethod · 0.56
test_equality_SetMethod · 0.56
test_arithmetic_SetMethod · 0.56
test_issue_4920Method · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…