Build issue https://github.com/streamlink/streamlink/issues/4102
According to the devs, this is caused by the build-script incorrectly invoking the test cases.
--- https://github.com/streamlink/streamlink/issues/4102#issuecomment-947029323
The PKGBUILD of the streamlink-git AUR package is not using pytest for running the tests and it is using a deprecated method instead (python setup.py test), which uses a different test runner:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=streamlink-git#n33
Running python setup.py test runs tests via setuptools' test runner, which is unsupported by Streamlink, as it doesn't collect pytest-style tests (or "non-unittest.TestCase" tests). For example, it doesn't run parametrized pytest tests, which Streamlink has a lot of. There is a method for overriding setuptools' test command via pytest-runner, but this is deprecated as well, so it won't be implemented here. The PKGBUILD will need to be updated by its maintainer.
Streamlink requires tests to be run via pytest or python -m pytest, and it should not collect the tests annotated with the @windows_only decorator on non-Windows machines.
Pinned Comments