File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 44
55
66def test_import_warning_does_not_cause_internal_error (pytester : Pytester ):
7+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
78 pytester .makepyfile (
89 dedent (
910 """\
@@ -19,6 +20,7 @@ async def test_errors_out():
1920
2021
2122def test_import_warning_in_package_does_not_cause_internal_error (pytester : Pytester ):
23+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
2224 pytester .makepyfile (
2325 __init__ = dedent (
2426 """\
@@ -37,6 +39,7 @@ async def test_errors_out():
3739
3840
3941def test_does_not_import_unrelated_packages (pytester : Pytester ):
42+ pytester .makeini ("[pytest]\n asyncio_default_fixture_loop_scope = function" )
4043 pkg_dir = pytester .mkpydir ("mypkg" )
4144 pkg_dir .joinpath ("__init__.py" ).write_text (
4245 dedent (
You can’t perform that action at this time.
0 commit comments