(self)
| 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 |
nothing calls this directly
no test coverage detected