Skip to content

Commit b305594

Browse files
simonfagerholmTinche
authored andcommitted
Change event_loop to module scope in hypothesis tests, fixing #145.
1 parent d5a0f47 commit b305594

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_hypothesis_integration.py

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
from hypothesis import given, strategies as st
99

1010

11+
@pytest.fixture(scope="module")
12+
def event_loop():
13+
loop = asyncio.get_event_loop()
14+
yield loop
15+
16+
1117
@given(st.integers())
1218
@pytest.mark.asyncio
1319
async def test_mark_inner(n):

0 commit comments

Comments
 (0)