Repository navigation
Test suite fails on non-macOS systems #2480
Copy link
Copy link
Closed
Description
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
- Use a Linux device. 😉
- Check out the master branch.
- Run
uv sync, thenmake 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 1Metadata
Metadata
Assignees
Labels
No labels
Activity
m3nu commentedon May 11, 2026
Already fixed by #2319 / f96fb67 —
tests/network_manager/test_darwin.pynow has a module-levelpytestmark = 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 ifmake teststill fails on Linux for a different reason.