diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-04-08 13:44:00 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-04-08 13:44:00 +0000 |
| commit | e51dc9ec042186f54c0ca56dff3d4ea2ec3d5c55 (patch) | |
| tree | fa92723ea301f2197e34ff8f1e419977183244ee /dev-python/websockets | |
| parent | 887ffcc6e2a55ac3736d297b2d746c2c804e09c4 (diff) | |
| download | baldeagleos-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.ebuild | 21 |
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 } |
