aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-06 20:11:36 -0500
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-02-05 15:12:39 +0000
commitdbb7f3f5ffbeddaa7db286690aa338912b933ef4 (patch)
tree08d82350f32ca547393214a58093c68285f1af56 /testing/py-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch
parentf5c5ca83a9dac89ee81cff2b81556b2fec6ea4ca (diff)
downloadaports-dbb7f3f5ffbeddaa7db286690aa338912b933ef4.tar.bz2
aports-dbb7f3f5ffbeddaa7db286690aa338912b933ef4.tar.xz
testing/tqdm: update to 4.29.0
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.patch36
1 files changed, 14 insertions, 22 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
index 55f62a0f90..2018fa0392 100644
--- 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
@@ -1,40 +1,32 @@
-From e54e652c04153fdad6949fee2c659ea4330bb294 Mon Sep 17 00:00:00 2001
+From 87da1f29923cf7f1af65f8b8a26c155545b61073 Mon Sep 17 00:00:00 2001
From: Drew DeVault <sir@cmpwn.com>
-Date: Fri, 22 Dec 2017 11:36:04 -0800
+Date: Tue, 1 Jan 2019 20:40:05 -0500
Subject: [PATCH] Skip flaky test that depends on GNU coreutils
---
- tqdm/tests/tests_main.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
+ tqdm/tests/tests_main.py | 2 ++
+ 1 file changed, 2 insertions(+)
diff --git a/tqdm/tests/tests_main.py b/tqdm/tests/tests_main.py
-index 32dc820..93b4181 100644
+index 58fbbd3..3fad869 100644
--- a/tqdm/tests/tests_main.py
+++ b/tqdm/tests/tests_main.py
-@@ -1,6 +1,7 @@
- import sys
- import subprocess
+@@ -4,6 +4,7 @@ from os import path
+ from shutil import rmtree
+ from tempfile import mkdtemp
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):
+ from tests_tqdm import with_setup, pretest, posttest, _range, closing, \
+ UnicodeIO, StringIO
+@@ -17,6 +18,7 @@ def _sh(*cmd, **kwargs):
+ # WARNING: this should be the last test as it messes with sys.stdin, argv
@with_setup(pretest, posttest)
def test_main():
- """Test command line pipes"""
+ raise SkipTest
+ """Test command line pipes"""
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
+2.20.1