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

Method test_difference

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

Source from the content-addressed store, hash-verified

1569 self.other)
1570
1571 def test_difference(self):
1572 self.assertRaises(TypeError, lambda: self.set - self.other)
1573 self.assertRaises(TypeError, lambda: self.other - self.set)
1574 if self.otherIsIterable:
1575 self.set.difference(self.other)
1576 else:
1577 self.assertRaises(TypeError, self.set.difference, self.other)
1578
1579#------------------------------------------------------------------------------
1580

Callers

nothing calls this directly

Calls 2

differenceMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected