Skip to content

Commit 6c21288

Browse files
authored
Replace event_loop removed in pytest-asyncio 1.0 (#2014)
Signed-off-by: Deepyaman Datta <[email protected]>
1 parent fbb7918 commit 6c21288

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/pandas/test_decorators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Testing the Decorators that check a functions input or output."""
22

3+
import asyncio
34
import pickle
45
import typing
5-
from asyncio import AbstractEventLoop
66

77
import numpy as np
88
import pandas as pd
@@ -1095,7 +1095,7 @@ def star_args_kwargs(
10951095
pd.testing.assert_frame_equal(expected, actual)
10961096

10971097

1098-
def test_coroutines(event_loop: AbstractEventLoop) -> None:
1098+
def test_coroutines() -> None:
10991099
# pylint: disable=missing-class-docstring,too-few-public-methods,missing-function-docstring
11001100
class Schema(DataFrameModel):
11011101
col1: Series[int]
@@ -1192,7 +1192,7 @@ async def check_coros() -> None:
11921192
with pytest.raises(errors.SchemaError):
11931193
await coro(bad_df)
11941194

1195-
event_loop.run_until_complete(check_coros())
1195+
asyncio.get_event_loop().run_until_complete(check_coros())
11961196

11971197

11981198
class Schema(DataFrameModel):

0 commit comments

Comments
 (0)