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.
2 parents dce1558 + 3bde1d0 commit cf2b330Copy full SHA for cf2b330
pytest_asyncio_cooperative/plugin.py
@@ -1,5 +1,5 @@
1
import asyncio
2
-import collections
+import collections.abc
3
import functools
4
import inspect
5
import time
@@ -82,7 +82,7 @@ async def test_wrapper(item):
82
async def do_teardowns():
83
item.start_teardown = time.time()
84
for teardown in teardowns:
85
- if isinstance(teardown, collections.Iterator):
+ if isinstance(teardown, collections.abc.Iterator):
86
try:
87
teardown.__next__()
88
except StopIteration:
0 commit comments