mirror of https://github.com/tqdm/tqdm.git
refix py2 tests
This commit is contained in:
parent
b45f24868d
commit
1435d102be
|
@ -203,5 +203,11 @@ def test_threadpool():
|
|||
|
||||
tqdm.set_lock(RLock())
|
||||
with ThreadPoolExecutor(8) as pool:
|
||||
res = list(tqdm(pool.map(incr_bar, range(100)), disable=True))
|
||||
try:
|
||||
res = list(tqdm(pool.map(incr_bar, range(100)), disable=True))
|
||||
except AttributeError:
|
||||
if sys.version_info < (3,):
|
||||
raise SkipTest
|
||||
else:
|
||||
raise
|
||||
assert sum(res) == sum(range(1, 101))
|
||||
|
|
Loading…
Reference in New Issue