Update README.md
[cached-property.git] / conftest.py
1
2 import sys
3
4 # Whether "import asyncio" works
5 has_asyncio = sys.version_info[0] == 3 and sys.version_info[1] >= 4
6
7 # Whether the async and await keywords work
8 has_async_await = sys.version_info[0] == 3 and sys.version_info[1] >= 5
9
10
11 print("conftest.py", has_asyncio, has_async_await)
12
13
14 collect_ignore = []
15
16 if not has_asyncio:
17 collect_ignore.append("tests/test_coroutine_cached_property.py")
18
19 if not has_async_await:
20 collect_ignore.append("tests/test_async_cached_property.py")