Skip to content

Commit

Permalink
Ignore trio.Event.clear deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Mar 1, 2020
1 parent 75f1a0d commit 5d2612b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pytest_trio/_tests/test_trio_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
import asyncio
from async_generator import async_generator, yield_

pytestmark = []

try:
import trio_asyncio
except ImportError:
pytestmark = pytest.mark.skip(reason="trio-asyncio not available")
pytestmark.append(pytest.mark.skip(reason="trio-asyncio not available"))

# https://github.com/python-trio/trio-asyncio/issues/61
pytestmark.append(
pytest.mark.
filterwarnings("ignore:trio.Event.clear.*:trio.TrioDeprecationWarning")
)


async def use_asyncio():
Expand Down

0 comments on commit 5d2612b

Please sign in to comment.