diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-06-14 19:07:50 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-06-14 19:09:58 +0200 |
commit | d6af5394542a96818ef8389227c7e4020f1c5f9f (patch) | |
tree | 5e7466e0579b796113fccbef20adaf7d92243767 /tests/unit/test_qt_machinery.py | |
parent | 69c21a57512ab4913319341f5f0139aac88515db (diff) | |
download | qutebrowser-d6af5394542a96818ef8389227c7e4020f1c5f9f.tar.gz qutebrowser-d6af5394542a96818ef8389227c7e4020f1c5f9f.zip |
qt: Use warning instead if Qt was already imported
Diffstat (limited to 'tests/unit/test_qt_machinery.py')
-rw-r--r-- | tests/unit/test_qt_machinery.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_qt_machinery.py b/tests/unit/test_qt_machinery.py index d4e6a4736..53a715262 100644 --- a/tests/unit/test_qt_machinery.py +++ b/tests/unit/test_qt_machinery.py @@ -335,7 +335,7 @@ def test_select_wrapper( def test_select_wrapper_after_qt_import(monkeypatch: pytest.MonkeyPatch): monkeypatch.setitem(sys.modules, "PyQt6", None) - with pytest.raises(machinery.Error, match="PyQt6 already imported"): + with pytest.warns(UserWarning, match="PyQt6 already imported"): machinery._select_wrapper(args=None) |