commit: 5ddbf0691e2d6410b79bc9e353b458c490457bbb Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Mon Feb 7 20:13:11 2022 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Mon Feb 7 20:14:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ddbf069
dev-python/pytest-check: fix tests with newer pytest-asyncio Closes: https://bugs.gentoo.org/832839 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> dev-python/pytest-check/pytest-check-1.0.4.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-python/pytest-check/pytest-check-1.0.4.ebuild b/dev-python/pytest-check/pytest-check-1.0.4.ebuild index 997fd0fc71b1..4a46d819d683 100644 --- a/dev-python/pytest-check/pytest-check-1.0.4.ebuild +++ b/dev-python/pytest-check/pytest-check-1.0.4.ebuild @@ -24,6 +24,12 @@ BDEPEND="dev-python/flit_core[${PYTHON_USEDEP}]" distutils_enable_tests --install pytest src_prepare() { - default - mv src/pytest_check pytest_check + mv src/pytest_check pytest_check || die + + # Fix expecting result in case pytest throws deprecation warnings + sed -e '/fnmatch_lines/s/\* /\*/g' \ + -e '/fnmatch_lines/s/ \*/\*/g' \ + -i tests/test_check.py || die + + distutils-r1_src_prepare }
