Merge pull request #91 from pydanny/pyup-update-pytest-3.3.0-to-3.5.0
[cached-property.git] / conftest.py
1
2 import sys
3
4 # Whether "import asyncio" works
5 has_asyncio = (
6 sys.version_info[0] == 3 and sys.version_info[1] >= 4
7 )
8
9 # Whether the async and await keywords work
10 has_async_await = (
11 sys.version_info[0] == 3 and sys.version_info[1] >= 5
12 )
13
14
15 print('conftest.py', has_asyncio, has_async_await)
16
17
18 collect_ignore = []
19
20 if not has_asyncio:
21 collect_ignore.append('tests/test_coroutine_cached_property.py')
22
23 if not has_async_await:
24 collect_ignore.append('tests/test_async_cached_property.py')