Skip to content

Commit

Permalink
Change event_loop to module scope in hypothesis tests, fixing #145.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfagerholm authored and Tinche committed Mar 29, 2020
1 parent d5a0f47 commit b305594
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_hypothesis_integration.py
Expand Up @@ -8,6 +8,12 @@
from hypothesis import given, strategies as st


@pytest.fixture(scope="module")
def event_loop():
loop = asyncio.get_event_loop()
yield loop


@given(st.integers())
@pytest.mark.asyncio
async def test_mark_inner(n):
Expand Down

0 comments on commit b305594

Please sign in to comment.