summaryrefslogtreecommitdiff
path: root/dev-python/websockets
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-08 13:44:00 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-08 13:44:00 +0000
commite51dc9ec042186f54c0ca56dff3d4ea2ec3d5c55 (patch)
treefa92723ea301f2197e34ff8f1e419977183244ee /dev-python/websockets
parent887ffcc6e2a55ac3736d297b2d746c2c804e09c4 (diff)
downloadbaldeagleos-repo-e51dc9ec042186f54c0ca56dff3d4ea2ec3d5c55.tar.gz
baldeagleos-repo-e51dc9ec042186f54c0ca56dff3d4ea2ec3d5c55.tar.xz
baldeagleos-repo-e51dc9ec042186f54c0ca56dff3d4ea2ec3d5c55.zip
Adding metadata
Diffstat (limited to 'dev-python/websockets')
-rw-r--r--dev-python/websockets/websockets-10.2.ebuild21
1 files changed, 13 insertions, 8 deletions
diff --git a/dev-python/websockets/websockets-10.2.ebuild b/dev-python/websockets/websockets-10.2.ebuild
index 77dd02e0201c..ddc2c25e3282 100644
--- a/dev-python/websockets/websockets-10.2.ebuild
+++ b/dev-python/websockets/websockets-10.2.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{7,8,9,10} )
+PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 )
inherit distutils-r1
@@ -18,12 +18,17 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv sparc x86"
-distutils_enable_tests unittest
+distutils_enable_tests pytest
-src_prepare() {
- # these fail due to timeouts on slower hardware
- sed -e 's:test_keepalive_ping_with_no_ping_timeout:_&:' \
- -e 's:test_keepalive_ping(:_&:' \
- -i tests/legacy/test_protocol.py || die
- distutils-r1_src_prepare
+python_test() {
+ local EPYTEST_DESELECT=(
+ # very fragile to speed
+ tests/legacy/test_protocol.py::ServerTests::test_local_close_receive_close_frame_timeout
+ )
+ [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
+ tests/test_utils.py::SpeedupsTests::test_apply_mask_non_contiguous_memoryview
+ tests/legacy/test_client_server.py::SecureClientServerTests::test_http_request_ws_endpoint
+ )
+
+ epytest tests
}