diff options
-rw-r--r-- | community/py3-tqdm/0001-Import-sleep-nearer-to-usage.patch | 25 | ||||
-rw-r--r-- | community/py3-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch | 4 | ||||
-rw-r--r-- | community/py3-tqdm/APKBUILD | 2 |
3 files changed, 3 insertions, 28 deletions
diff --git a/community/py3-tqdm/0001-Import-sleep-nearer-to-usage.patch b/community/py3-tqdm/0001-Import-sleep-nearer-to-usage.patch deleted file mode 100644 index 07a6e8bf5d..0000000000 --- a/community/py3-tqdm/0001-Import-sleep-nearer-to-usage.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 2ee98c517b7ba4a130af7cce7677bd488fc5712d Mon Sep 17 00:00:00 2001 -From: Drew DeVault <sir@cmpwn.com> -Date: Fri, 22 Dec 2017 11:38:38 -0800 -Subject: [PATCH] Import sleep nearer to usage - -The version imported at the top is overwritten later, breaking tests. ---- - tqdm/tests/tests_tqdm.py | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py -index d668248..ac0948b 100644 ---- a/tqdm/tests/tests_tqdm.py -+++ b/tqdm/tests/tests_tqdm.py -@@ -89,6 +89,7 @@ class FakeSleep(object): - self.dtimer = dtimer - - def sleep(self, t): -+ from time import sleep - end = t + self.dtimer.t - while self.dtimer.t < end: - sleep(0.0000001) # sleep a bit to interrupt (instead of pass) --- -2.15.0 - diff --git a/community/py3-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch b/community/py3-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch index 2018fa0392..b4c3c8a0d2 100644 --- a/community/py3-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch +++ b/community/py3-tqdm/0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch @@ -8,13 +8,13 @@ Subject: [PATCH] Skip flaky test that depends on GNU coreutils 1 file changed, 2 insertions(+) diff --git a/tqdm/tests/tests_main.py b/tqdm/tests/tests_main.py -index 58fbbd3..3fad869 100644 +index dd87ccf..d65febe 100644 --- a/tqdm/tests/tests_main.py +++ b/tqdm/tests/tests_main.py @@ -4,6 +4,7 @@ from os import path from shutil import rmtree from tempfile import mkdtemp - from tqdm import main, TqdmKeyError, TqdmTypeError + from tqdm.cli import main, TqdmKeyError, TqdmTypeError +from nose.plugins.skip import SkipTest from tests_tqdm import with_setup, pretest, posttest, _range, closing, \ diff --git a/community/py3-tqdm/APKBUILD b/community/py3-tqdm/APKBUILD index c46d5b8696..5b1d88b199 100644 --- a/community/py3-tqdm/APKBUILD +++ b/community/py3-tqdm/APKBUILD @@ -44,4 +44,4 @@ package() { } sha512sums="0d12bdb574978be027ecd1ceaddae246aa217c3f5d9ed117e7d5e6f43d6f7bf530a779afd753c42a813ba9287772fc423b2bea15db4b3e619e6615c9b0b465b3 tqdm-4.36.0.tar.gz -227b39f92ef529762c455d6cb82a84f05af00a7d72b505082a749c1de959ab7814ef0b3b07df62c77ebc184671f5579718f000eaafa534b775b58427de935e96 0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch" +18be29842ec2444ac92e2748afab35bece67d9896ce8ba9b90f54fe717680203a45dad41887b217a95821c4b98307f23ebd3540fba0c76f581d38a844d8e4e15 0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch" |