Skip to content

Commit 5d256b8

Browse files
committed
refactor: Addressed warnings about missing default fixture loop scope in test_doctest.
1 parent 9eb9cec commit 5d256b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_doctest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
def test_plugin_does_not_interfere_with_doctest_collection(pytester: Pytester):
7+
pytester.makeini("[pytest]\nasyncio_default_fixture_loop_scope = function")
78
pytester.makepyfile(
89
dedent(
910
'''\
@@ -20,6 +21,7 @@ def any_function():
2021

2122

2223
def test_plugin_does_not_interfere_with_doctest_textfile_collection(pytester: Pytester):
24+
pytester.makeini("[pytest]\nasyncio_default_fixture_loop_scope = function")
2325
pytester.makefile(".txt", "") # collected as DoctestTextfile
2426
pytester.makepyfile(
2527
__init__="",

0 commit comments

Comments
 (0)