Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp/
Date: Tue, 09 Nov 2021 12:54:57
Message-Id: 1636462483.7550cea41152d36c9f48bb26309ac2532d1c6dfa.arthurzam@gentoo
1 commit: 7550cea41152d36c9f48bb26309ac2532d1c6dfa
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 9 12:51:34 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 9 12:54:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7550cea4
7
8 dev-python/aiohttp: increase timeout for one test
9
10 The test_when_timeout_smaller_second at tests/test_helpers.py
11 expects too high precision on timeout. Multiple runs on sparc
12 managed to get just outsize the range (1.1ms when 1ms is expected).
13
14 By upping the precision to 10ms, all tests pass on sparc.
15
16 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
17
18 dev-python/aiohttp/aiohttp-3.8.0.ebuild | 3 +++
19 1 file changed, 3 insertions(+)
20
21 diff --git a/dev-python/aiohttp/aiohttp-3.8.0.ebuild b/dev-python/aiohttp/aiohttp-3.8.0.ebuild
22 index 54748d231fe..79cfce77e92 100644
23 --- a/dev-python/aiohttp/aiohttp-3.8.0.ebuild
24 +++ b/dev-python/aiohttp/aiohttp-3.8.0.ebuild
25 @@ -63,6 +63,9 @@ src_prepare() {
26 "${FILESDIR}"/${P}-examples.patch
27 )
28
29 + # increate a little the timeout
30 + sed -e '/abs_tol=/s/0.001/0.01/' -i tests/test_helpers.py || die
31 +
32 # xfail_strict fails on py3.10
33 sed -i -e '/--cov/d' -e '/xfail_strict/d' setup.cfg || die
34 distutils-r1_src_prepare