diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-22 12:07:11 -0800 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-12-25 13:16:47 +0000 |
commit | 1e6472edd15d77d3ab4ffeead964edead634443e (patch) | |
tree | 1bc216d74b1c1c439f7a2a32a4e940d1aa39ecbd /testing/py-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch | |
parent | 6df6bc96e3468c439afb53c37fefe81f37de9948 (diff) | |
download | aports-1e6472edd15d77d3ab4ffeead964edead634443e.tar.bz2 aports-1e6472edd15d77d3ab4ffeead964edead634443e.tar.xz |
testing/py-tqdm: new aport
https://pypi.python.org/pypi/tqdm
Fast, Extensible Progress Meter
Diffstat (limited to 'testing/py-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch')
-rw-r--r-- | testing/py-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/py-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch b/testing/py-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch new file mode 100644 index 0000000000..55f62a0f90 --- /dev/null +++ b/testing/py-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch @@ -0,0 +1,40 @@ +From e54e652c04153fdad6949fee2c659ea4330bb294 Mon Sep 17 00:00:00 2001 +From: Drew DeVault <sir@cmpwn.com> +Date: Fri, 22 Dec 2017 11:36:04 -0800 +Subject: [PATCH] Skip flaky test that depends on GNU coreutils + +--- + tqdm/tests/tests_main.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tqdm/tests/tests_main.py b/tqdm/tests/tests_main.py +index 32dc820..93b4181 100644 +--- a/tqdm/tests/tests_main.py ++++ b/tqdm/tests/tests_main.py +@@ -1,6 +1,7 @@ + import sys + import subprocess + from tqdm import main, TqdmKeyError, TqdmTypeError ++from nose.plugins.skip import SkipTest + + from tests_tqdm import with_setup, pretest, posttest, _range, closing, UnicodeIO + +@@ -14,6 +15,7 @@ def _sh(*cmd, **kwargs): + @with_setup(pretest, posttest) + def test_main(): + """Test command line pipes""" ++ raise SkipTest + ls_out = _sh('ls').replace('\r\n', '\n') + ls = subprocess.Popen('ls', stdout=subprocess.PIPE, + stderr=subprocess.STDOUT) +@@ -22,7 +24,6 @@ def test_main(): + ls.wait() + + # actual test: +- + assert (ls_out in res.replace('\r\n', '\n')) + + # semi-fake test which gets coverage: +-- +2.15.0 + |