Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-check/
Date: Mon, 07 Feb 2022 20:15:02
Message-Id: 1644264877.5ddbf0691e2d6410b79bc9e353b458c490457bbb.arthurzam@gentoo
1 commit: 5ddbf0691e2d6410b79bc9e353b458c490457bbb
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 7 20:13:11 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 20:14:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ddbf069
7
8 dev-python/pytest-check: fix tests with newer pytest-asyncio
9
10 Closes: https://bugs.gentoo.org/832839
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 dev-python/pytest-check/pytest-check-1.0.4.ebuild | 10 ++++++++--
14 1 file changed, 8 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-python/pytest-check/pytest-check-1.0.4.ebuild b/dev-python/pytest-check/pytest-check-1.0.4.ebuild
17 index 997fd0fc71b1..4a46d819d683 100644
18 --- a/dev-python/pytest-check/pytest-check-1.0.4.ebuild
19 +++ b/dev-python/pytest-check/pytest-check-1.0.4.ebuild
20 @@ -24,6 +24,12 @@ BDEPEND="dev-python/flit_core[${PYTHON_USEDEP}]"
21 distutils_enable_tests --install pytest
22
23 src_prepare() {
24 - default
25 - mv src/pytest_check pytest_check
26 + mv src/pytest_check pytest_check || die
27 +
28 + # Fix expecting result in case pytest throws deprecation warnings
29 + sed -e '/fnmatch_lines/s/\* /\*/g' \
30 + -e '/fnmatch_lines/s/ \*/\*/g' \
31 + -i tests/test_check.py || die
32 +
33 + distutils-r1_src_prepare
34 }