44
55
66def test_asyncio_strict_mode_skip (pytester : Pytester ):
7+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
78 pytester .makepyfile (
89 dedent (
910 """\
@@ -22,6 +23,7 @@ async def test_no_warning_on_skip():
2223
2324
2425def test_asyncio_auto_mode_skip (pytester : Pytester ):
26+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
2527 pytester .makepyfile (
2628 dedent (
2729 """\
@@ -39,6 +41,7 @@ async def test_no_warning_on_skip():
3941
4042
4143def test_asyncio_strict_mode_module_level_skip (pytester : Pytester ):
44+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
4245 pytester .makepyfile (
4346 dedent (
4447 """\
@@ -57,6 +60,7 @@ async def test_is_skipped():
5760
5861
5962def test_asyncio_auto_mode_module_level_skip (pytester : Pytester ):
63+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
6064 pytester .makepyfile (
6165 dedent (
6266 """\
@@ -74,6 +78,7 @@ async def test_is_skipped():
7478
7579
7680def test_asyncio_auto_mode_wrong_skip_usage (pytester : Pytester ):
81+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
7782 pytester .makepyfile (
7883 dedent (
7984 """\
@@ -91,6 +96,7 @@ async def test_is_skipped():
9196
9297
9398def test_unittest_skiptest_compatibility (pytester : Pytester ):
99+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
94100 pytester .makepyfile (
95101 dedent (
96102 """\
@@ -108,6 +114,7 @@ async def test_is_skipped():
108114
109115
110116def test_skip_in_module_does_not_skip_package (pytester : Pytester ):
117+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
111118 pytester .makepyfile (
112119 __init__ = "" ,
113120 test_skip = dedent (
0 commit comments