From 079d71fe2dc77ce64d35f8123019282e9bd190eb Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Mon, 4 Feb 2019 00:18:14 +0000 Subject: [PATCH] update perf tests --- .travis.yml | 2 +- tqdm/tests/tests_perf.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6afe4760..b786f08a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ matrix: env: TOXENV=pypy3 - python: 3.6 env: TOXENV=flake8 - - python: 2.7 + - python: 3.6 env: TOXENV=perf # use cache for big builds like pandas (to minimise build time). # If issues, clear cache diff --git a/tqdm/tests/tests_perf.py b/tqdm/tests/tests_perf.py index ac90aedc..f2ca3a52 100644 --- a/tqdm/tests/tests_perf.py +++ b/tqdm/tests/tests_perf.py @@ -298,7 +298,7 @@ def test_iter_overhead_simplebar_hard(): # Compute relative overhead of tqdm against native range() try: - assert time_tqdm() < 2.5 * time_bench() + assert time_tqdm() < 3 * time_bench() except AssertionError: raise AssertionError('trange(%g): %f, simple_progress(%g): %f' % (total, time_tqdm(), total, time_bench())) @@ -330,7 +330,7 @@ def test_manual_overhead_simplebar_hard(): # Compute relative overhead of tqdm against native range() try: - assert time_tqdm() < 2.5 * time_bench() + assert time_tqdm() < 3 * time_bench() except AssertionError: raise AssertionError('tqdm(%g): %f, simple_progress(%g): %f' % (total, time_tqdm(), total, time_bench()))