mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user