Set __tracebackhide__ for CallbackChecker.check

This commit is contained in:
Florian Bruhin 2018-09-08 12:15:14 +02:00
parent 8ac3162425
commit a58abf8f4c

View File

@ -203,6 +203,7 @@ class CallbackChecker(QObject):
def check(self, expected): def check(self, expected):
"""Wait until the JS result arrived and compare it.""" """Wait until the JS result arrived and compare it."""
__tracebackhide__ = True
if self._result is self.UNSET: if self._result is self.UNSET:
with self._qtbot.waitSignal(self.got_result, timeout=2000): with self._qtbot.waitSignal(self.got_result, timeout=2000):
pass pass