diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-04-15 08:59:53 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-04-15 08:59:53 +0200 |
commit | 6b3e7c2ca8710f7425e68790a1351e32ee1e2e29 (patch) | |
tree | 4e769f9fe81823936c8dac1ba6c4f165c3a6ae93 /tests | |
parent | 72facbb8f2d1304539e91e290c695e9f0441807e (diff) | |
download | qutebrowser-6b3e7c2ca8710f7425e68790a1351e32ee1e2e29.tar.gz qutebrowser-6b3e7c2ca8710f7425e68790a1351e32ee1e2e29.zip |
Fix up test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_app.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_app.py b/tests/unit/test_app.py index 9c83449c4..e359f2136 100644 --- a/tests/unit/test_app.py +++ b/tests/unit/test_app.py @@ -21,6 +21,7 @@ from PyQt5.QtCore import QBuffer +from qutebrowser.misc import objects from qutebrowser import app @@ -30,7 +31,7 @@ def test_on_focus_changed_issue1484(monkeypatch, qapp, caplog): For some reason, Qt sometimes calls on_focus_changed() with a QBuffer as argument. Let's make sure we handle that gracefully. """ - monkeypatch.setattr(app, 'q_app', qapp) + monkeypatch.setattr(objects, 'qapp', qapp) buf = QBuffer() app.on_focus_changed(buf, buf) |