MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_intersection

Method test_intersection

Lib/test/test_set.py:1529–1535  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1527 self.other)
1528
1529 def test_intersection(self):
1530 self.assertRaises(TypeError, lambda: self.set & self.other)
1531 self.assertRaises(TypeError, lambda: self.other & self.set)
1532 if self.otherIsIterable:
1533 self.set.intersection(self.other)
1534 else:
1535 self.assertRaises(TypeError, self.set.intersection, self.other)
1536
1537 def test_sym_difference_update_operator(self):
1538 try:

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45
intersectionMethod · 0.45

Tested by

no test coverage detected