From ff0d3754fa57db75ce94c375fbbbdeea7c0d7635 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 8 Nov 2015 10:55:34 +0900 Subject: move bar.done out of the loop because obviously --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tasks.py') diff --git a/tasks.py b/tasks.py index 673793bd..2051093e 100644 --- a/tasks.py +++ b/tasks.py @@ -82,8 +82,8 @@ def download_artifacts(session): for data in response.iter_content(chunk_size=8192): content.write(data) bar.show(content.tell()) - if bar.expected_size == content.tell(): - bar.done() + assert bar.expected_size == content.tell() + bar.done() out_path = os.path.join( os.path.dirname(__file__), "dist", -- cgit v1.2.3