4
4
5
5
6
6
def test_asyncio_strict_mode_skip (pytester : Pytester ):
7
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
7
8
pytester .makepyfile (
8
9
dedent (
9
10
"""\
@@ -22,6 +23,7 @@ async def test_no_warning_on_skip():
22
23
23
24
24
25
def test_asyncio_auto_mode_skip (pytester : Pytester ):
26
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
25
27
pytester .makepyfile (
26
28
dedent (
27
29
"""\
@@ -39,6 +41,7 @@ async def test_no_warning_on_skip():
39
41
40
42
41
43
def test_asyncio_strict_mode_module_level_skip (pytester : Pytester ):
44
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
42
45
pytester .makepyfile (
43
46
dedent (
44
47
"""\
@@ -57,6 +60,7 @@ async def test_is_skipped():
57
60
58
61
59
62
def test_asyncio_auto_mode_module_level_skip (pytester : Pytester ):
63
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
60
64
pytester .makepyfile (
61
65
dedent (
62
66
"""\
@@ -74,6 +78,7 @@ async def test_is_skipped():
74
78
75
79
76
80
def test_asyncio_auto_mode_wrong_skip_usage (pytester : Pytester ):
81
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
77
82
pytester .makepyfile (
78
83
dedent (
79
84
"""\
@@ -91,6 +96,7 @@ async def test_is_skipped():
91
96
92
97
93
98
def test_unittest_skiptest_compatibility (pytester : Pytester ):
99
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
94
100
pytester .makepyfile (
95
101
dedent (
96
102
"""\
@@ -108,6 +114,7 @@ async def test_is_skipped():
108
114
109
115
110
116
def test_skip_in_module_does_not_skip_package (pytester : Pytester ):
117
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
111
118
pytester .makepyfile (
112
119
__init__ = "" ,
113
120
test_skip = dedent (
0 commit comments