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

Method test_difference_update

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

Source from the content-addressed store, hash-verified

1561 self.fail("expected TypeError")
1562
1563 def test_difference_update(self):
1564 if self.otherIsIterable:
1565 self.set.difference_update(self.other)
1566 else:
1567 self.assertRaises(TypeError,
1568 self.set.difference_update,
1569 self.other)
1570
1571 def test_difference(self):
1572 self.assertRaises(TypeError, lambda: self.set - self.other)

Callers

nothing calls this directly

Calls 2

difference_updateMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected