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

Method test_leaf_generator

Lib/test/test_exception_group.py:585–594  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

583 # used below as a test utility. So we test it here.
584
585 def test_leaf_generator(self):
586 eg = create_simple_eg()
587
588 self.assertSequenceEqual(
589 [e for e, _ in leaf_generator(eg)],
590 eg.exceptions)
591
592 for e, tbs in leaf_generator(eg):
593 self.assertSequenceEqual(
594 tbs, [eg.__traceback__, e.__traceback__])
595
596
597def create_nested_eg():

Callers

nothing calls this directly

Calls 3

create_simple_egFunction · 0.85
leaf_generatorFunction · 0.85
assertSequenceEqualMethod · 0.80

Tested by

no test coverage detected