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

Method test_intersection_update

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

Source from the content-addressed store, hash-verified

1513 self.fail("expected TypeError")
1514
1515 def test_intersection_update(self):
1516 if self.otherIsIterable:
1517 self.set.intersection_update(self.other)
1518 else:
1519 self.assertRaises(TypeError,
1520 self.set.intersection_update,
1521 self.other)
1522
1523 def test_intersection(self):
1524 self.assertRaises(TypeError, lambda: self.set & self.other)

Callers

nothing calls this directly

Calls 2

intersection_updateMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected