From 9bc88f8f743cf3c710d8f67bce622874d30e0b85 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 17 Dec 2012 18:21:11 +0200 Subject: [PATCH] test_api_base: use stdout for progress bar Because otherwise the output is visible when runnint nosetest without -s. Change-Id: Ifa9ec61f4fdf2679bab215b316e70afcf7a6ad15 Signed-off-by: Artem Bityutskiy --- tests/test_api_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_api_base.py b/tests/test_api_base.py index 9ee11bb..106cb26 100644 --- a/tests/test_api_base.py +++ b/tests/test_api_base.py @@ -144,7 +144,7 @@ def _copy_image(image, f_dest, f_bmap, image_sha1, image_size): writer = BmapCopy.BmapCopy(f_image, f_dest, f_bmap, image_size) # Randomly decide whether we want the progress bar or not if bool(random.getrandbits(1)): - writer.set_progress_indicator(sys.stderr, None) + writer.set_progress_indicator(sys.stdout, None) writer.copy(bool(random.getrandbits(1)), bool(random.getrandbits(1))) # Compare the original file and the copy are identical -- 2.7.4