diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-08-01 08:32:40 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-08-01 08:33:26 +0000 |
commit | 7daafb8b6fbff9d10fcc5960a6df3ff91be74c0a (patch) | |
tree | 05bc84b48ca60b78e121f208122a686a83073d91 /community/py-tqdm/0001-Import-sleep-nearer-to-usage.patch | |
parent | 691c1b9e5c36f9116274894faaf17e03e15b3cd1 (diff) | |
download | aports-7daafb8b6fbff9d10fcc5960a6df3ff91be74c0a.tar.bz2 aports-7daafb8b6fbff9d10fcc5960a6df3ff91be74c0a.tar.xz |
testing/py3-tqdm: move to community
due to ocrmypdf
Diffstat (limited to 'community/py-tqdm/0001-Import-sleep-nearer-to-usage.patch')
-rw-r--r-- | community/py-tqdm/0001-Import-sleep-nearer-to-usage.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/community/py-tqdm/0001-Import-sleep-nearer-to-usage.patch b/community/py-tqdm/0001-Import-sleep-nearer-to-usage.patch new file mode 100644 index 0000000000..07a6e8bf5d --- /dev/null +++ b/community/py-tqdm/0001-Import-sleep-nearer-to-usage.patch @@ -0,0 +1,25 @@ +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 + |