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

Method test_send_yield_from

Lib/test/test_opcache.py:1611–1622  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1609 @cpython_only
1610 @requires_specialization
1611 def test_send_yield_from(self):
1612 def g():
1613 yield None
1614
1615 def send_yield_from():
1616 yield from g()
1617
1618 for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):
1619 list(send_yield_from())
1620
1621 self.assert_specialized(send_yield_from, "SEND_GEN")
1622 self.assert_no_opcode(send_yield_from, "SEND")
1623
1624 @cpython_only
1625 @requires_specialization

Callers

nothing calls this directly

Calls 3

listClass · 0.85
assert_specializedMethod · 0.80
assert_no_opcodeMethod · 0.80

Tested by

no test coverage detected