Skip to content

Commit

Permalink
Replace a deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Nov 5, 2024
1 parent e0f1e6c commit be98a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/test_until.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
from hypothesis import given
from hypothesis import strategies as st

from nextline.utils import UntilNotNoneTimeout, aiterable, until_not_none
from nextline.utils import UntilNotNoneTimeout, to_aiter, until_not_none


@given(st.data())
async def test_return(data: st.DataObject) -> None:
val = data.draw(st.text())
nones = data.draw(st.lists(st.none(), max_size=10))
ret = nones + [val]
func = aiterable(ret).__anext__
func = to_aiter(ret).__anext__
assert (await until_not_none(func)) == val


Expand Down

0 comments on commit be98a64

Please sign in to comment.