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

Method test_union

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

Source from the content-addressed store, hash-verified

1497 self.assertRaises(TypeError, self.set.update, self.other)
1498
1499 def test_union(self):
1500 self.assertRaises(TypeError, lambda: self.set | self.other)
1501 self.assertRaises(TypeError, lambda: self.other | self.set)
1502 if self.otherIsIterable:
1503 self.set.union(self.other)
1504 else:
1505 self.assertRaises(TypeError, self.set.union, self.other)
1506
1507 def test_intersection_update_operator(self):
1508 try:

Callers

nothing calls this directly

Calls 2

unionMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected