Skip to content

Commit

Permalink
fix py26, slight tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 24, 2020
1 parent f00036b commit 36a6165
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/py37_asyncio.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion tests/tests_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
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 change: 1 addition & 0 deletions tests/tests_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re

from .tests_tqdm import pretest_posttest # NOQA


Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 36a6165

Please sign in to comment.