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"))

@@ -1,12 +1,23 @@
+import sys%0A
 import os.pa
@@ -19,16 +19,16 @@
 os.path%0A
-
 %0Acollect
@@ -102,73 +102,100 @@
 ))%0A%0A
-try:%0A    import asyncio%0A    import contextvars%0Aexcept ImportError
+%0Aif sys.version_info.major %3C 3 or sys.version_info.major == 3 and sys.version_info.minor %3C 7
 :%0A  

check versions instead of import attempt in conftest