Skip to content

Commit 13b2b94

Browse files
authored
Fixture event_loop got removed from pytest-asyncio. (#294)
1 parent 2439bc9 commit 13b2b94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_asyncio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from mocket.plugins.aiohttp_connector import MocketTCPConnector
1313

1414

15-
def test_asyncio_record_replay(event_loop):
15+
def test_asyncio_record_replay():
1616
async def test_asyncio_connection():
1717
reader, writer = await asyncio.open_connection(
1818
host="google.com",
@@ -33,7 +33,7 @@ async def test_asyncio_connection():
3333

3434
with tempfile.TemporaryDirectory() as temp_dir:
3535
with Mocketizer(truesocket_recording_dir=temp_dir):
36-
event_loop.run_until_complete(test_asyncio_connection())
36+
asyncio.run(test_asyncio_connection())
3737

3838
files = glob.glob(f"{temp_dir}/*.json")
3939
assert len(files) == 1

0 commit comments

Comments
 (0)