diff --git a/tox.ini b/tox.ini index 16b54349..b5e52c06 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ deps = coverage<4 coveralls commands = - nosetests --with-coverage --cover-package=tqdm -v tqdm/ + nosetests --with-coverage --cover-package=tqdm -d -v tqdm/ coveralls [testenv:flake8] diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py index a02d22fd..44e41927 100644 --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -4,11 +4,15 @@ import csv import re from time import sleep +try: + _range = xrange +except NameError: + _range = range + try: from StringIO import StringIO except: from io import StringIO - from io import StringIO as uIO # supports unicode strings from tqdm import format_interval @@ -36,12 +40,12 @@ def test_format_meter(): assert format_meter(0, 1000, 13, ncols=68, prefix='desc: ') == \ "desc: 0%| | 0/1000 [00:13