Skip to content

Draft: community/mopidy: disable a test on riscv64

omni requested to merge omni/aports:disable-test-mopidy-rv64 into master
=================================== FAILURES ===================================
____________________ HelpTest.test_help_has_mopidy_options _____________________

self = <tests.test_help.HelpTest testMethod=test_help_has_mopidy_options>

    def test_help_has_mopidy_options(self):
        mopidy_dir = os.path.dirname(mopidy.__file__)
        args = [sys.executable, mopidy_dir, "--help"]
        process = subprocess.Popen(
            args,
            env={
                "PYTHONPATH": ":".join(
                    [
                        os.path.join(mopidy_dir, ".."),
                        os.environ.get("PYTHONPATH", ""),
                    ]
                )
            },
            stdout=subprocess.PIPE,
        )
        output = process.communicate()[0]
>       assert b"--version" in output
E       AssertionError: assert b'--version' in b''

tests/test_help.py:26: AssertionError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/buildozer/aports/community/mopidy/src/mopidy-3.4.2/mopidy/__main__.py", line 7, in <module>
    from mopidy import commands
  File "/home/buildozer/aports/community/mopidy/src/mopidy-3.4.2/mopidy/__init__.py", line 5, in <module>
    import pkg_resources
  File "/usr/lib/python3.12/site-packages/pkg_resources/__init__.py", line 68, in <module>
    from pkg_resources.extern.jaraco.text import (
  File "/usr/lib/python3.12/site-packages/pkg_resources/_vendor/jaraco/text/__init__.py", line 12, in <module>
    from pkg_resources.extern.jaraco.context import ExceptionTrap
  File "/usr/lib/python3.12/site-packages/pkg_resources/_vendor/jaraco/context.py", line 11, in <module>
    import urllib.request
  File "/usr/lib/python3.12/urllib/request.py", line 88, in <module>
    import http.client
  File "/home/buildozer/aports/community/mopidy/src/mopidy-3.4.2/mopidy/http/__init__.py", line 11, in <module>
    class Extension(ext.Extension):
  File "/home/buildozer/aports/community/mopidy/src/mopidy-3.4.2/mopidy/http/__init__.py", line 14, in Extension
    version = mopidy.__version__
              ^^^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'mopidy' has no attribute '__version__' (most likely due to a circular import)
=============================== warnings summary ===============================
mopidy/__init__.py:5
  /home/buildozer/aports/community/mopidy/src/mopidy-3.4.2/mopidy/__init__.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

../../../../../../../usr/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
  /usr/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

tests/test_version.py::VersionTest::test_current_version_is_parsable_as_a_strict_version_number
  /home/buildozer/aports/community/mopidy/src/mopidy-3.4.2/tests/test_version.py:9: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    StrictVersion(__version__)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_help.py::HelpTest::test_help_has_mopidy_options - Assertion...
========== 1 failed, 1449 passed, 1 deselected, 3 warnings in 28.41s ===========
>>> ERROR: mopidy: check failed

Merge request reports

Loading