summaryrefslogtreecommitdiff
path: root/dev-python/tornado
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/tornado')
-rw-r--r--dev-python/tornado/files/tornado-6.3.2-test-timeout-increase.patch15
-rw-r--r--dev-python/tornado/tornado-6.3.2.ebuild4
2 files changed, 19 insertions, 0 deletions
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 4ffb76fd8ddb..fd6a977a02fb 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:_&:' \