Browse Source

tests: qt_util: disable timer in qt testcases

master
Sander van Grieken 2 years ago
parent
commit
57270e3bf3
No known key found for this signature in database
GPG Key ID: 9BCF8209EA402EBA
  1. 8
      electrum/tests/qt_util.py

8
electrum/tests/qt_util.py

@ -44,10 +44,10 @@ class QETestCase(unittest.IsolatedAsyncioTestCase):
def start_qt_task():
self.app = TestQCoreApplication([])
self.timer = QTimer(self.app)
self.timer.setSingleShot(False)
self.timer.setInterval(500) # msec
self.timer.timeout.connect(lambda: None) # periodically enter python scope
# self.timer = QTimer(self.app)
# self.timer.setSingleShot(False)
# self.timer.setInterval(500) # msec
# self.timer.timeout.connect(lambda: None) # periodically enter python scope
self.app.exec()
self.app = None

Loading…
Cancel
Save