diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-04-13 20:47:32 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-08-23 18:31:40 +0200 |
commit | 76f9262defc0217289443467927cab7c211aff73 (patch) | |
tree | d502b76175b1ca19091c302620d20d25f779207e /tests/unit/utils/test_log.py | |
parent | cedca4737003e9f3f153b6df5b51f43dc80f73cc (diff) | |
download | qutebrowser-76f9262defc0217289443467927cab7c211aff73.tar.gz qutebrowser-76f9262defc0217289443467927cab7c211aff73.zip |
Fix missed enum scope changes
For some reason, QtMsgType was not included and missing.
(cherry picked from commit 6afa00c465327a118dbcff46fa85b6df53037263)
For completiondelegate.py, we accessed the enum members via self instead of
properly using the class.
(cherry picked from commit d37cc4ac73545c6a2615456a3487536c2ec00803)
For interceptor.py, line breaks broke our script.
QKeyEvent.KeyPress was used inherited from QEvent.KeyPress, thus not
renamed.
Diffstat (limited to 'tests/unit/utils/test_log.py')
-rw-r--r-- | tests/unit/utils/test_log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/utils/test_log.py b/tests/unit/utils/test_log.py index 4e97f7eb1..6865e6e0d 100644 --- a/tests/unit/utils/test_log.py +++ b/tests/unit/utils/test_log.py @@ -429,5 +429,5 @@ class TestQtMessageHandler: def test_empty_message(self, caplog): """Make sure there's no crash with an empty message.""" - log.qt_message_handler(QtCore.QtDebugMsg, self.Context(), "") + log.qt_message_handler(QtCore.QtMsgType.QtDebugMsg, self.Context(), "") assert caplog.messages == ["Logged empty message!"] |