commit:     0a25391ed01c4be0c5bad772da965db43ea3404c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 27 09:07:02 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 27 09:15:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a25391e

dev-python/tornado: increase test timeout

Closes: https://bugs.gentoo.org/727934
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/tornado-6.3.2-test-timeout-increase.patch       | 15 +++++++++++++++
 dev-python/tornado/tornado-6.3.2.ebuild                   |  4 ++++
 2 files changed, 19 insertions(+)

diff --git a/dev-python/tornado/files/tornado-6.3.2-test-timeout-increase.patch 
b/dev-python/tornado/files/tornado-6.3.2-test-timeout-increase.patch
new file mode 100644
index 000000000000..271880c28469
--- /dev/null
+++ b/dev-python/tornado/files/tornado-6.3.2-test-timeout-increase.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/727934
+--- a/tornado/test/simple_httpclient_test.py
++++ b/tornado/test/simple_httpclient_test.py
+@@ -293,9 +293,9 @@ class SimpleHTTPClientTestMixin(object):
+ 
+     @skipOnTravis
+     def test_request_timeout(self: typing.Any):
+-        timeout = 0.1
++        timeout = 5
+         if os.name == "nt":
+-            timeout = 0.5
++            timeout = 10
+ 
+         with self.assertRaises(HTTPTimeoutError):
+             self.fetch("/trigger?wake=false", request_timeout=timeout, 
raise_error=True)

diff --git a/dev-python/tornado/tornado-6.3.2.ebuild 
b/dev-python/tornado/tornado-6.3.2.ebuild
index 2191de2910dd..6f7c89f5d33a 100644
--- a/dev-python/tornado/tornado-6.3.2.ebuild
+++ b/dev-python/tornado/tornado-6.3.2.ebuild
@@ -35,6 +35,10 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-6.3.2-test-timeout-increase.patch
+)
+
 src_prepare() {
        # network-sandbox? ipv6?
        sed -i -e 's:test_localhost:_&:' \

Reply via email to