[diffoscope] 03/03: Progress tests require progressbar module (re. #854593)

Chris Lamb chris at chris-lamb.co.uk
Wed Feb 8 21:34:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 83e939e0d6b00d7a404c6dcb6b7496542f845b3a
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Feb 9 10:31:31 2017 +1300

    Progress tests require progressbar module (re. #854593)
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 tests/test_progress.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/test_progress.py b/tests/test_progress.py
index 74fad00..9053709 100644
--- a/tests/test_progress.py
+++ b/tests/test_progress.py
@@ -25,6 +25,8 @@ import pytest
 from diffoscope.main import main
 from diffoscope.progress import ProgressManager, StatusFD
 
+from comparators.utils.tools import skip_unless_module_exists
+
 TEST_TAR1_PATH = os.path.join(os.path.dirname(__file__), 'data', 'test1.tar')
 TEST_TAR2_PATH = os.path.join(os.path.dirname(__file__), 'data', 'test2.tar')
 
@@ -37,6 +39,7 @@ def run(capsys, *args):
 
     return exc.value.code, out, err
 
+ at skip_unless_module_exists('progressbar')
 def test_progress(capsys):
     ret, _, err = run(capsys, TEST_TAR1_PATH, TEST_TAR2_PATH, '--progress')
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git



More information about the Reproducible-commits mailing list