import os.path

collect_ignore = []
current_dir = os.path.dirname(os.path.abspath(__file__))

try:
    import asyncio
    import contextvars
except ImportError:
    collect_ignore.append(os.path.join(current_dir, "test_async.py"))

import sys
import os.path

collect_ignore = []
current_dir = os.path.dirname(os.path.abspath(__file__))


if sys.version_info.major < 3 or sys.version_info.major == 3 and sys.version_info.minor < 7:
    collect_ignore.append(os.path.join(current_dir, "test_async.py"))

check versions instead of import attempt in conftest