Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/websockets/
Date: Fri, 08 Apr 2022 11:10:04
Message-Id: 1649416186.2830e9eafb13cd2c2b2820a07a3e6a0f51d32e8d.mgorny@gentoo
1 commit: 2830e9eafb13cd2c2b2820a07a3e6a0f51d32e8d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 10:10:12 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 11:09:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2830e9ea
7
8 dev-python/websockets: Switch to pytest for easier deselects
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/websockets/websockets-10.2.ebuild | 10 +++-------
13 1 file changed, 3 insertions(+), 7 deletions(-)
14
15 diff --git a/dev-python/websockets/websockets-10.2.ebuild b/dev-python/websockets/websockets-10.2.ebuild
16 index e43c8d5084ee..729159c20d01 100644
17 --- a/dev-python/websockets/websockets-10.2.ebuild
18 +++ b/dev-python/websockets/websockets-10.2.ebuild
19 @@ -18,12 +18,8 @@ LICENSE="BSD"
20 SLOT="0"
21 KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv sparc x86"
22
23 -distutils_enable_tests unittest
24 +distutils_enable_tests pytest
25
26 -src_prepare() {
27 - # these fail due to timeouts on slower hardware
28 - sed -e 's:test_keepalive_ping_with_no_ping_timeout:_&:' \
29 - -e 's:test_keepalive_ping(:_&:' \
30 - -i tests/legacy/test_protocol.py || die
31 - distutils-r1_src_prepare
32 +python_test() {
33 + epytest tests
34 }