Skip to content

Commit 7a589a7

Browse files
committed
[test] Added missing warning assertion to hypothesis test.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 502bd90 commit 7a589a7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/hypothesis/test_base.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@ async def test_explicit_fixture_request(event_loop, n):
5454
"""
5555
)
5656
)
57-
result = pytester.runpytest("--asyncio-mode=strict")
58-
result.assert_outcomes(passed=1)
57+
result = pytester.runpytest("--asyncio-mode=strict", "-W default")
58+
result.assert_outcomes(passed=1, warnings=2)
59+
result.stdout.fnmatch_lines(
60+
[
61+
'*is asynchronous and explicitly requests the "event_loop" fixture*',
62+
"*event_loop fixture provided by pytest-asyncio has been redefined*",
63+
]
64+
)
5965

6066

6167
def test_async_auto_marked(pytester: Pytester):

0 commit comments

Comments
 (0)