Skip to content

Test suite fails on non-macOS systems #2480

Closed

Description

@pflakus

Description

When trying to run the test suite, as described in the CONTRIBUTING.md, the second command fails with an error message. (see below)

Steps to reproduce

  1. Use a Linux device. 😉
  2. Check out the master branch.
  3. Run uv sync, then make test.

Reproduction

  • I tried to reproduce the issue.
  • I was able to reproduce the issue.

OS

Arch Linux, 6.19.9, KDE Plasma 6.6.3

Version of Vorta

doesn't apply (but 0.11.3 😉)

What did you install Vorta with?

Other

Version of Borg

No response

Logs

uv run nox -- --cov=vorta
nox > Running session run_tests(borgbackup='1.4.3')
nox > Creating virtual environment (uv) using python3 in .nox/run_tests-borgbackup-1-4-3
nox > /usr/bin/uv pip install 'borgbackup[pyfuse3]==1.4.3'
nox > /usr/bin/uv pip install -e '.[test]'
nox > borg --version
nox > python -c 'import borg; print(borg.__version__)'
nox > Borg CLI version: 1.4.3
nox > Borg Python version: 1.4.3
nox > pytest --cov=vorta
================================================= test session starts =================================================
platform linux -- Python 3.14.3, pytest-9.0.2, pluggy-1.6.0 -- /home/chai/Projects/vorta/.nox/run_tests-borgbackup-1-4-3/bin/python3
cachedir: .pytest_cache
PyQt6 6.10.2 -- Qt runtime 6.10.2 -- Qt compiled 6.10.0
rootdir: /home/chai/Projects/vorta
configfile: pyproject.toml
testpaths: tests
plugins: qt-4.5.0, mock-3.15.1, cov-7.1.0
collected 233 items / 1 error                                                                                         

======================================================= ERRORS ========================================================
________________________________ ERROR collecting tests/network_manager/test_darwin.py ________________________________
ImportError while importing test module '/home/chai/Projects/vorta/tests/network_manager/test_darwin.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.14/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/network_manager/test_darwin.py:8: in <module>
    from vorta.network_status import darwin  # noqa: E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/vorta/network_status/darwin.py:7: in <module>
    from CoreWLAN import CWInterface, CWNetwork, CWWiFiClient
E   ModuleNotFoundError: No module named 'CoreWLAN'
=============================================== short test summary info ===============================================
ERROR tests/network_manager/test_darwin.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================== 1 error in 0.16s ===================================================
nox > Command pytest --cov=vorta failed with exit code 2
nox > Session run_tests(borgbackup='1.4.3') failed.
make: *** [Makefile:88: test] Error 1

Activity

  1. m3nu commented on May 11, 2026

    @m3nu
    Contributor

    Already fixed by #2319 / f96fb67 — tests/network_manager/test_darwin.py now has a module-level pytestmark = pytest.mark.skipif(sys.platform != 'darwin', …), so the CoreWLAN ImportError no longer occurs on Linux. The bug report was against 0.11.3, before that commit landed. Closing; please open a fresh issue if make test still fails on Linux for a different reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions