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

Method test_yield_from_empty

Lib/test/test_yield_from.py:879–882  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

877 ])
878
879 def test_yield_from_empty(self):
880 def g():
881 yield from ()
882 self.assertRaises(StopIteration, next, g())
883
884 def test_delegating_generators_claim_to_be_running(self):
885 # Check with basic iteration

Callers

nothing calls this directly

Calls 2

gFunction · 0.70
assertRaisesMethod · 0.45

Tested by

no test coverage detected