Skip to content

Commit

Permalink
Merge pull request #24 from Clouder0/fix/collection.abc.iterator
Browse files Browse the repository at this point in the history
use collections.abc instead of collections
  • Loading branch information
willemt authored May 2, 2022
2 parents dce1558 + 3bde1d0 commit cf2b330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_asyncio_cooperative/plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import asyncio
import collections
import collections.abc
import functools
import inspect
import time
Expand Down Expand Up @@ -82,7 +82,7 @@ async def test_wrapper(item):
async def do_teardowns():
item.start_teardown = time.time()
for teardown in teardowns:
if isinstance(teardown, collections.Iterator):
if isinstance(teardown, collections.abc.Iterator):
try:
teardown.__next__()
except StopIteration:
Expand Down

0 comments on commit cf2b330

Please sign in to comment.