commit: 4e0238433847668e7c74de33971286054053dc35
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 11 07:20:32 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 11 07:59:08 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e023843
dev-python/cherrypy: Fix test instability
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/cherrypy/cherrypy-18.7.0.ebuild | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/dev-python/cherrypy/cherrypy-18.7.0.ebuild
b/dev-python/cherrypy/cherrypy-18.7.0.ebuild
index 829fc9cccf09..21233e3fc5f1 100644
--- a/dev-python/cherrypy/cherrypy-18.7.0.ebuild
+++ b/dev-python/cherrypy/cherrypy-18.7.0.ebuild
@@ -48,19 +48,11 @@ BDEPEND="
distutils_enable_tests pytest
-EPYTEST_DESELECT=(
- # flaky test that's now problematic due to xfail_strict
- cherrypy/test/test_caching.py::CacheTest::test_antistampede
-)
-
python_prepare_all() {
- sed -r -e '/(pytest-sugar|pytest-cov)/ d' \
- -i setup.py || die
-
- sed -r -e 's:--cov-report[[:space:]]+[[:graph:]]+::g' \
- -e 's:--cov[[:graph:]]+::g' \
- -e 's:--doctest[[:graph:]]+::g' \
- -i pytest.ini || die
+ sed -i -e '/cov/d' pytest.ini || die
+ # upstream has been using xfail to mark flaky tests, then added
+ # xfail_strict... not a good idea
+ sed -i -e '/xfail_strict/d' pytest.ini || die
distutils-r1_python_prepare_all
}