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

Method test_difference_update

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

Source from the content-addressed store, hash-verified

1567 self.fail("expected TypeError")
1568
1569 def test_difference_update(self):
1570 if self.otherIsIterable:
1571 self.set.difference_update(self.other)
1572 else:
1573 self.assertRaises(TypeError,
1574 self.set.difference_update,
1575 self.other)
1576
1577 def test_difference(self):
1578 self.assertRaises(TypeError, lambda: self.set - self.other)

Callers

nothing calls this directly

Calls 2

difference_updateMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected