Skip to content

Commit

Permalink
check for asyncio and contextvars before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
aleneum committed Jan 10, 2020
1 parent aa29c14 commit bbba36e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import sys

collect_ignore = []
if sys.version_info[0] < 3:

try:
import asyncio
import contextvars
except ImportError:
collect_ignore.append("tests/test_async.py")

0 comments on commit bbba36e

Please sign in to comment.