pytest-dev / pytest-qt

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

Use pytest.UsageError instead of RuntimeError for qt_compat errors #355

Closed The-Compiler closed 3 years ago

The-Compiler commented 3 years ago

For user errors (e.g. wrong PYTEST_QT_API value or too old PyQt version) we should use pytest.UsageError instead of RuntimeError so that the user gets a nice error message instead of an INTERNALERROR> traceback.

Will do this after #340 since this adds two new such errors.