Skip to content

Commit cf2b330

Browse files
authored
Merge pull request #24 from Clouder0/fix/collection.abc.iterator
use collections.abc instead of collections
2 parents dce1558 + 3bde1d0 commit cf2b330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_asyncio_cooperative/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import asyncio
2-
import collections
2+
import collections.abc
33
import functools
44
import inspect
55
import time
@@ -82,7 +82,7 @@ async def test_wrapper(item):
8282
async def do_teardowns():
8383
item.start_teardown = time.time()
8484
for teardown in teardowns:
85-
if isinstance(teardown, collections.Iterator):
85+
if isinstance(teardown, collections.abc.Iterator):
8686
try:
8787
teardown.__next__()
8888
except StopIteration:

0 commit comments

Comments
 (0)