fix py26, slight tidy

This commit is contained in:
Casper da Costa-Luis 2020-10-24 22:35:32 +01:00
parent f00036bbd8
commit 36a6165d94
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
4 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
import re
from .tests_tqdm import pretest_posttest # NOQA

View File

@ -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