File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
6
6
def test_import_warning_does_not_cause_internal_error (pytester : Pytester ):
7
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
7
8
pytester .makepyfile (
8
9
dedent (
9
10
"""\
@@ -19,6 +20,7 @@ async def test_errors_out():
19
20
20
21
21
22
def test_import_warning_in_package_does_not_cause_internal_error (pytester : Pytester ):
23
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
22
24
pytester .makepyfile (
23
25
__init__ = dedent (
24
26
"""\
@@ -37,6 +39,7 @@ async def test_errors_out():
37
39
38
40
39
41
def test_does_not_import_unrelated_packages (pytester : Pytester ):
42
+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
40
43
pkg_dir = pytester .mkpydir ("mypkg" )
41
44
pkg_dir .joinpath ("__init__.py" ).write_text (
42
45
dedent (
You can’t perform that action at this time.
0 commit comments