File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1010
1111
1212def test_hypothesis_given_decorator_before_asyncio_mark (pytester : Pytester ):
13+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
1314 pytester .makepyfile (
1415 dedent (
1516 """\
@@ -42,6 +43,7 @@ async def test_mark_and_parametrize(x, y):
4243
4344
4445def test_can_use_explicit_event_loop_fixture (pytester : Pytester ):
46+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = module" )
4547 pytester .makepyfile (
4648 dedent (
4749 """\
@@ -78,6 +80,7 @@ async def test_explicit_fixture_request(event_loop, n):
7880
7981
8082def test_async_auto_marked (pytester : Pytester ):
83+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
8184 pytester .makepyfile (
8285 dedent (
8386 """\
@@ -100,6 +103,7 @@ async def test_hypothesis(n: int):
100103
101104def test_sync_not_auto_marked (pytester : Pytester ):
102105 """Assert that synchronous Hypothesis functions are not marked with asyncio"""
106+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
103107 pytester .makepyfile (
104108 dedent (
105109 """\
You can’t perform that action at this time.
0 commit comments