MCPcopy
hub / github.com/psycopg/psycopg / tgen

Function tgen

tests/test_waiting.py:39–42  ·  view source on GitHub ↗

A generator waiting for a specific event and returning what waited on.

(wait)

Source from the content-addressed store, hash-verified

37
38
39def 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)

Callers 5

test_wait_rFunction · 0.70
test_wait_r_no_linuxFunction · 0.70
test_wait_r_nowaitFunction · 0.70
test_wait_wFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected