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/watchgod/
Date: Fri, 03 Dec 2021 20:47:49
Message-Id: 1638564453.cf837bbd487521ce80220ecba5e4238215bbe77a.arthurzam@gentoo
1 commit: cf837bbd487521ce80220ecba5e4238215bbe77a
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 3 20:46:32 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 3 20:47:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf837bbd
7
8 dev-python/watchgod: increase timeout for slow systems
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/watchgod/watchgod-0.7.ebuild | 12 ++++++++++++
13 1 file changed, 12 insertions(+)
14
15 diff --git a/dev-python/watchgod/watchgod-0.7.ebuild b/dev-python/watchgod/watchgod-0.7.ebuild
16 index 92e36bbd9492..7efbc07f534f 100644
17 --- a/dev-python/watchgod/watchgod-0.7.ebuild
18 +++ b/dev-python/watchgod/watchgod-0.7.ebuild
19 @@ -27,3 +27,15 @@ BDEPEND="
20 "
21
22 distutils_enable_tests pytest
23 +
24 +EPYTEST_DESELECT=(
25 + # flaky test on slow systems, https://github.com/samuelcolvin/watchgod/issues/84
26 + tests/test_watch.py::test_awatch_log
27 +)
28 +
29 +src_prepare() {
30 + # increase timeout
31 + sed -e '/sleep/s/0.01/1.0/' -i tests/test_watch.py || die
32 +
33 + distutils-r1_src_prepare
34 +}