diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-08 10:47:02 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-08 10:47:02 +0100 |
commit | 99017c50ac52a9ed2946ffee888ac2235f835bbd (patch) | |
tree | 6b8725114540230dfc429b62c06e38aa68666d4d /tests/unit/utils/test_qtutils.py | |
parent | c628e1430c1d51888df6b825121444334d1b15ec (diff) | |
download | qutebrowser-99017c50ac52a9ed2946ffee888ac2235f835bbd.tar.gz qutebrowser-99017c50ac52a9ed2946ffee888ac2235f835bbd.zip |
Trivial PyQt 6 changes
See #5395
Diffstat (limited to 'tests/unit/utils/test_qtutils.py')
-rw-r--r-- | tests/unit/utils/test_qtutils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/utils/test_qtutils.py b/tests/unit/utils/test_qtutils.py index 2e54fb42e..816cd8621 100644 --- a/tests/unit/utils/test_qtutils.py +++ b/tests/unit/utils/test_qtutils.py @@ -920,14 +920,14 @@ class TestEventLoop: def _double_exec(self): """Slot which gets called from timers to assert double-exec fails.""" with pytest.raises(AssertionError): - self.loop.exec_() + self.loop.exec() def test_normal_exec(self): """Test exec_ without double-executing.""" self.loop = qtutils.EventLoop() QTimer.singleShot(100, self._assert_executing) QTimer.singleShot(200, self.loop.quit) - self.loop.exec_() + self.loop.exec() assert not self.loop._executing def test_double_exec(self): @@ -937,7 +937,7 @@ class TestEventLoop: QTimer.singleShot(200, self._double_exec) QTimer.singleShot(300, self._assert_executing) QTimer.singleShot(400, self.loop.quit) - self.loop.exec_() + self.loop.exec() assert not self.loop._executing |