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

Method test_sym_difference

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

Source from the content-addressed store, hash-verified

1545 self.other)
1546
1547 def test_sym_difference(self):
1548 self.assertRaises(TypeError, lambda: self.set ^ self.other)
1549 self.assertRaises(TypeError, lambda: self.other ^ self.set)
1550 if self.otherIsIterable:
1551 self.set.symmetric_difference(self.other)
1552 else:
1553 self.assertRaises(TypeError, self.set.symmetric_difference, self.other)
1554
1555 def test_difference_update_operator(self):
1556 try:

Callers

nothing calls this directly

Calls 2

symmetric_differenceMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected