pytest-dev / pytest-qt

pytest plugin for Qt (PyQt5/PyQt6 and PySide2/PySide6) application testing
https://pytest-qt.readthedocs.io
MIT License
408 stars 70 forks source link

Tests using qtbot hang indefinitely on Mac OS Sonoma #522

Closed GeorgyIvanov closed 1 year ago

GeorgyIvanov commented 1 year ago

Encountered this after upgrading MacOs to Sonoma.

Minimal example:

def test_repro(qtbot):
    pass

When I run it in a clean virtual environment with only pytest-qt, pyside + dependencies installed...

(cleanrepro) <redacted> tests % pytest test.py --verbose
================================================================================ test session starts ================================================================================
platform darwin -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0 -- <redacted>/.pyenv/versions/3.11.5/envs/cleanrepro/bin/python
cachedir: .pytest_cache
PySide6 6.5.2 -- Qt runtime 6.5.2 -- Qt compiled 6.5.2
rootdir: <redacted>/PycharmProjects/reproProject/tests
plugins: qt-4.2.0
collected 1 item                                                                                                                                                                    

test.py::test_repro 

... it just hangs and never completes.

Changing Pyside to PyQt6 does not change anything.

GeorgyIvanov commented 1 year ago

Looks like a duplicate of https://github.com/pytest-dev/pytest-qt/issues/521