diff --git a/tests/py37_asyncio.py b/tests/py37_asyncio.py index a3e366c7..901bda53 100644 --- a/tests/py37_asyncio.py +++ b/tests/py37_asyncio.py @@ -1,6 +1,6 @@ -import asyncio from functools import partial, wraps from time import time +import asyncio from tqdm.asyncio import tqdm_asyncio, tarange from .tests_tqdm import pretest_posttest # NOQA diff --git a/tests/tests_asyncio.py b/tests/tests_asyncio.py index e42dced9..5bb13c0d 100644 --- a/tests/tests_asyncio.py +++ b/tests/tests_asyncio.py @@ -4,4 +4,7 @@ if sys.version_info[:2] > (3, 6): from .py37_asyncio import * # NOQA else: import pytest - pytest.skip("async not supported", allow_module_level=True) + try: + pytest.skip("async not supported", allow_module_level=True) + except TypeError: + pass diff --git a/tests/tests_version.py b/tests/tests_version.py index cbf29195..41908ccd 100644 --- a/tests/tests_version.py +++ b/tests/tests_version.py @@ -1,4 +1,5 @@ import re + from .tests_tqdm import pretest_posttest # NOQA diff --git a/tox.ini b/tox.ini index 009ea755..3b09e7b4 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ deps = coverage coveralls commands = - pytest -v --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf" + pytest --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf" - coveralls - curl -OL https://coverage.codacy.com/get.sh - bash get.sh report -r coverage.xml @@ -27,7 +27,7 @@ deps = {[coverage]deps} codecov commands = - pytest -v --durations=10 --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf" + pytest --durations=10 --cov=tqdm --cov-report=xml --cov-report=term -k "not tests_perf" - coveralls codecov - curl -OL https://coverage.codacy.com/get.sh @@ -79,13 +79,13 @@ deps = {[extra]deps} tensorflow commands = - pytest -v --durations=10 -k tests_keras + pytest --durations=10 -k tests_keras [testenv:perf] deps = pytest commands = - pytest -v --durations=0 -k tests_perf + pytest --durations=0 -k tests_perf [testenv:flake8] deps = flake8