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

Method test_difference

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

Source from the content-addressed store, hash-verified

1575 self.other)
1576
1577 def test_difference(self):
1578 self.assertRaises(TypeError, lambda: self.set - self.other)
1579 self.assertRaises(TypeError, lambda: self.other - self.set)
1580 if self.otherIsIterable:
1581 self.set.difference(self.other)
1582 else:
1583 self.assertRaises(TypeError, self.set.difference, self.other)
1584
1585#------------------------------------------------------------------------------
1586

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45
differenceMethod · 0.45

Tested by

no test coverage detected