============================= test session starts ==============================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1
rootdir: /build/streamlink/src/streamlink-3.1.1
collected 2447 items / 7 errors / 2440 selected

==================================== ERRORS ====================================
____________________ ERROR collecting tests/test_session.py ____________________
ImportError while importing test module '/build/streamlink/src/streamlink-3.1.1/tests/test_session.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_session.py:7: in <module>
    import requests_mock
E   ModuleNotFoundError: No module named 'requests_mock'
________________ ERROR collecting tests/plugins/test_rtpplay.py ________________
ImportError while importing test module '/build/streamlink/src/streamlink-3.1.1/tests/plugins/test_rtpplay.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/plugins/test_rtpplay.py:3: in <module>
    import requests_mock
E   ModuleNotFoundError: No module named 'requests_mock'
________________ ERROR collecting tests/plugins/test_stream.py _________________
ImportError while importing test module '/build/streamlink/src/streamlink-3.1.1/tests/plugins/test_stream.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/plugins/test_stream.py:4: in <module>
    import requests_mock
E   ModuleNotFoundError: No module named 'requests_mock'
________________ ERROR collecting tests/plugins/test_twitch.py _________________
ImportError while importing test module '/build/streamlink/src/streamlink-3.1.1/tests/plugins/test_twitch.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/plugins/test_twitch.py:5: in <module>
    import requests_mock
E   ModuleNotFoundError: No module named 'requests_mock'
__________________ ERROR collecting tests/plugins/test_vk.py ___________________
ImportError while importing test module '/build/streamlink/src/streamlink-3.1.1/tests/plugins/test_vk.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/plugins/test_vk.py:2: in <module>
    import requests_mock as rm
E   ModuleNotFoundError: No module named 'requests_mock'
__________________ ERROR collecting tests/stream/test_hls.py ___________________
ImportError while importing test module '/build/streamlink/src/streamlink-3.1.1/tests/stream/test_hls.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/stream/test_hls.py:8: in <module>
    import requests_mock
E   ModuleNotFoundError: No module named 'requests_mock'
______________ ERROR collecting tests/stream/test_hls_filtered.py ______________
ImportError while importing test module '/build/streamlink/src/streamlink-3.1.1/tests/stream/test_hls_filtered.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/stream/test_hls_filtered.py:6: in <module>
    from tests.mixins.stream_hls import EventedHLSStreamWriter, Playlist, Segment, TestMixinStreamHLS
tests/mixins/stream_hls.py:7: in <module>
    import requests_mock
E   ModuleNotFoundError: No module named 'requests_mock'
=============================== warnings summary ===============================
../../../../usr/lib/python3.10/site-packages/packaging/version.py:111: 224 warnings
  /usr/lib/python3.10/site-packages/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
    warnings.warn(

build/lib/streamlink_cli/main.py:10
  /build/streamlink/src/streamlink-3.1.1/build/lib/streamlink_cli/main.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import StrictVersion

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
ERROR tests/test_session.py
ERROR tests/plugins/test_rtpplay.py
ERROR tests/plugins/test_stream.py
ERROR tests/plugins/test_twitch.py
ERROR tests/plugins/test_vk.py
ERROR tests/stream/test_hls.py
ERROR tests/stream/test_hls_filtered.py
!!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection !!!!!!!!!!!!!!!!!!!!
======================= 225 warnings, 7 errors in 9.15s ========================
[1m[31m==> ERROR:[m[1m A failure occurred in check().[m
[1m    Aborting...[m
