We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
event_loop
pytest-asyncio
1 parent 2439bc9 commit 13b2b94Copy full SHA for 13b2b94
tests/test_asyncio.py
@@ -12,7 +12,7 @@
12
from mocket.plugins.aiohttp_connector import MocketTCPConnector
13
14
15
-def test_asyncio_record_replay(event_loop):
+def test_asyncio_record_replay():
16
async def test_asyncio_connection():
17
reader, writer = await asyncio.open_connection(
18
host="google.com",
@@ -33,7 +33,7 @@ async def test_asyncio_connection():
33
34
with tempfile.TemporaryDirectory() as temp_dir:
35
with Mocketizer(truesocket_recording_dir=temp_dir):
36
- event_loop.run_until_complete(test_asyncio_connection())
+ asyncio.run(test_asyncio_connection())
37
38
files = glob.glob(f"{temp_dir}/*.json")
39
assert len(files) == 1
0 commit comments