diff options
author | Sam James <sam@gentoo.org> | 2023-05-27 10:07:02 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-27 10:15:30 +0100 |
commit | 0a25391ed01c4be0c5bad772da965db43ea3404c (patch) | |
tree | 32f804ed4f3b083d37df937314d34df3631861ce /dev-python/tornado | |
parent | dev-libs/weston: Bump to 12.0.1, drop old 12.0.0 (diff) | |
download | gentoo-0a25391ed01c4be0c5bad772da965db43ea3404c.tar.gz gentoo-0a25391ed01c4be0c5bad772da965db43ea3404c.tar.bz2 gentoo-0a25391ed01c4be0c5bad772da965db43ea3404c.zip |
dev-python/tornado: increase test timeout
Closes: https://bugs.gentoo.org/727934
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/tornado')
-rw-r--r-- | dev-python/tornado/files/tornado-6.3.2-test-timeout-increase.patch | 15 | ||||
-rw-r--r-- | dev-python/tornado/tornado-6.3.2.ebuild | 4 |
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 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:_&:' \ |