dev-python/pytest-check: fix tests with newer pytest-asyncio

Closes: https://bugs.gentoo.org/832839
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2022-02-07 22:14:37 +02:00
parent 8ba9ed3ff5
commit 5ddbf0691e
@@ -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
}