A generator waiting for a specific event and returning what waited on.
(wait)
| 37 | |
| 38 | |
| 39 | def tgen(wait): |
| 40 | """A generator waiting for a specific event and returning what waited on.""" |
| 41 | r = yield wait |
| 42 | return r |
| 43 | |
| 44 | |
| 45 | @pytest.mark.parametrize("interval", intervals) |
no outgoing calls
no test coverage detected