commit: cf837bbd487521ce80220ecba5e4238215bbe77a Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Dec 3 20:46:32 2021 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Dec 3 20:47:33 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf837bbd
dev-python/watchgod: increase timeout for slow systems Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> dev-python/watchgod/watchgod-0.7.ebuild | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dev-python/watchgod/watchgod-0.7.ebuild b/dev-python/watchgod/watchgod-0.7.ebuild index 92e36bbd9492..7efbc07f534f 100644 --- a/dev-python/watchgod/watchgod-0.7.ebuild +++ b/dev-python/watchgod/watchgod-0.7.ebuild @@ -27,3 +27,15 @@ BDEPEND=" " distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # flaky test on slow systems, https://github.com/samuelcolvin/watchgod/issues/84 + tests/test_watch.py::test_awatch_log +) + +src_prepare() { + # increase timeout + sed -e '/sleep/s/0.01/1.0/' -i tests/test_watch.py || die + + distutils-r1_src_prepare +}
