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

Method test_union

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

Source from the content-addressed store, hash-verified

1503 self.assertRaises(TypeError, self.set.update, self.other)
1504
1505 def test_union(self):
1506 self.assertRaises(TypeError, lambda: self.set | self.other)
1507 self.assertRaises(TypeError, lambda: self.other | self.set)
1508 if self.otherIsIterable:
1509 self.set.union(self.other)
1510 else:
1511 self.assertRaises(TypeError, self.set.union, self.other)
1512
1513 def test_intersection_update_operator(self):
1514 try:

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45
unionMethod · 0.45

Tested by

no test coverage detected