net-misc/yt-dlp: (always) skip websockets tests

These were already skipped when dev-python/websockets is not installed.

In bug #940630, considered depending on it for tests but yt-dlp seems
to be picky with websockets version (sometime wanting newer, sometime
older to work right) and that works out poorly with the straight to
stable model of yt-dlp.

Ultimately not aware of typical users needing this, we do not even
advertise it as a optfeature -- so can consider it semi-unsupported.

Closes: https://bugs.gentoo.org/940630
Closes: https://bugs.gentoo.org/950030
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-02-21 10:26:03 -05:00
parent 6f3c0458bf
commit 4846b48997
2 changed files with 8 additions and 4 deletions

View File

@@ -34,10 +34,10 @@ python_test() {
test/test_networking.py::TestHTTPRequestHandler::test_connect_timeout
# fails with FEATURES=distcc, bug #915614
test/test_networking.py::TestYoutubeDLNetworking::test_proxy\[None-expected2\]
# needs (optional) websockets-15 which is not stable yet, and
# it is not considered a big issue if websockets tests fails
# as not even advertised as a optfeature, so just skip for now
test/test_websockets.py::TestWebsSocketRequestHandlerConformance::test_verify_cert\[Websockets\]
# websockets tests break easily depending on dev-python/websockets
# version and, as far as I know, most users do not use/need it --
# thus being neither in RDEPEND nor optfeature (bug #940630,#950030)
test/test_websockets.py
)
epytest -m 'not download'

View File

@@ -41,6 +41,10 @@ python_test() {
test/test_networking.py::TestHTTPRequestHandler::test_connect_timeout
# fails with FEATURES=distcc, bug #915614
test/test_networking.py::TestYoutubeDLNetworking::test_proxy\[None-expected2\]
# websockets tests break easily depending on dev-python/websockets
# version and, as far as I know, most users do not use/need it --
# thus being neither in RDEPEND nor optfeature (bug #940630,#950030)
test/test_websockets.py
)
epytest -m 'not download'