From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- .../files/eventlet-0.30.2-test-timeout.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 dev-python/eventlet/files/eventlet-0.30.2-test-timeout.patch (limited to 'dev-python/eventlet/files') 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?= +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 + -- cgit v1.2.3