commit:     7550cea41152d36c9f48bb26309ac2532d1c6dfa
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  9 12:51:34 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Nov  9 12:54:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7550cea4

dev-python/aiohttp: increase timeout for one test

The test_when_timeout_smaller_second at tests/test_helpers.py
expects too high precision on timeout. Multiple runs on sparc
managed to get just outsize the range (1.1ms when 1ms is expected).

By upping the precision to 10ms, all tests pass on sparc.

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/aiohttp/aiohttp-3.8.0.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-python/aiohttp/aiohttp-3.8.0.ebuild 
b/dev-python/aiohttp/aiohttp-3.8.0.ebuild
index 54748d231fe..79cfce77e92 100644
--- a/dev-python/aiohttp/aiohttp-3.8.0.ebuild
+++ b/dev-python/aiohttp/aiohttp-3.8.0.ebuild
@@ -63,6 +63,9 @@ src_prepare() {
                "${FILESDIR}"/${P}-examples.patch
        )
 
+       # increate a little the timeout
+       sed -e '/abs_tol=/s/0.001/0.01/' -i tests/test_helpers.py || die
+
        # xfail_strict fails on py3.10
        sed -i -e '/--cov/d' -e '/xfail_strict/d' setup.cfg || die
        distutils-r1_src_prepare

Reply via email to