summaryrefslogtreecommitdiff
path: root/dev-python/eventlet/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-python/eventlet/files
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-python/eventlet/files')
-rw-r--r--dev-python/eventlet/files/eventlet-0.30.2-test-timeout.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/eventlet/files/eventlet-0.30.2-test-timeout.patch b/dev-python/eventlet/files/eventlet-0.30.2-test-timeout.patch
new file mode 100644
index 000000000000..d31b3738bc16
--- /dev/null
+++ b/dev-python/eventlet/files/eventlet-0.30.2-test-timeout.patch
@@ -0,0 +1,39 @@
+From 0b8fd069386354d2d7e5464ce0b0d5b7d1795376 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sun, 11 Apr 2021 12:20:09 +0200
+Subject: [PATCH] Force test timeouts to 60 s
+
+The upstream test timeouts are far too low for a busy system, and there
+is no point in pursuing such low values anyway. Force 60 s that should
+be reasonably safe for our test runs.
+---
+ tests/__init__.py | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tests/__init__.py b/tests/__init__.py
+index 82cd247..3a943c4 100644
+--- a/tests/__init__.py
++++ b/tests/__init__.py
+@@ -170,8 +170,8 @@ class LimitedTestCase(unittest.TestCase):
+
+ def setUp(self):
+ self.previous_alarm = None
+- self.timer = eventlet.Timeout(self.TEST_TIMEOUT,
+- TestIsTakingTooLong(self.TEST_TIMEOUT))
++ self.timer = eventlet.Timeout(60,
++ TestIsTakingTooLong(60))
+
+ def reset_timeout(self, new_timeout):
+ """Changes the timeout duration; only has effect during one test.
+@@ -350,7 +350,7 @@ def run_python(path, env=None, args=None, timeout=None, pythonpath_extend=None,
+ stdout=subprocess.PIPE,
+ )
+ if timeout is None:
+- timeout = 10
++ timeout = 60
+ try:
+ output, _ = p.communicate(timeout=timeout)
+ except subprocess.TimeoutExpired:
+--
+2.31.1
+