A generator waiting for a specific event and returning what waited on.
(wait)
| 45 | |
| 46 | |
| 47 | def tgen(wait): |
| 48 | """A generator waiting for a specific event and returning what waited on.""" |
| 49 | r = yield wait |
| 50 | return r |
| 51 | |
| 52 | |
| 53 | @pytest.mark.parametrize("interval", intervals) |
no outgoing calls
no test coverage detected