diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-07-11 09:20:32 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-07-11 09:59:08 +0200 |
commit | 4e0238433847668e7c74de33971286054053dc35 (patch) | |
tree | ab6137283fde8ceb2504852c347fdd29b8787672 | |
parent | dev-python/pikepdf: Remove old (diff) | |
download | gentoo-4e0238433847668e7c74de33971286054053dc35.tar.gz gentoo-4e0238433847668e7c74de33971286054053dc35.tar.bz2 gentoo-4e0238433847668e7c74de33971286054053dc35.zip |
dev-python/cherrypy: Fix test instability
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | dev-python/cherrypy/cherrypy-18.7.0.ebuild | 16 |
1 files 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 } |