mirror of https://github.com/tqdm/tqdm.git
fix py26, slight tidy
This commit is contained in:
parent
f00036bbd8
commit
36a6165d94
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import re
|
||||
|
||||
from .tests_tqdm import pretest_posttest # NOQA
|
||||
|
||||
|
||||
|
|
8
tox.ini
8
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
|
||||
|
|
Loading…
Reference in New Issue