some clean-ups now that we require python 3.10
This commit is contained in:
@@ -6,8 +6,6 @@ from unittest import SkipTest
|
||||
|
||||
from PyQt6.QtCore import QCoreApplication, QMetaObject, Qt, pyqtSlot, QObject
|
||||
|
||||
from electrum.util import traceback_format_exception
|
||||
|
||||
|
||||
class TestQCoreApplication(QCoreApplication):
|
||||
@pyqtSlot()
|
||||
@@ -78,7 +76,7 @@ def qt_test(func):
|
||||
if not res:
|
||||
self._e = Exception('testcase timed out')
|
||||
if self._e:
|
||||
print("".join(traceback_format_exception(self._e)))
|
||||
print("".join(traceback.format_exception(self._e)))
|
||||
# deallocate stored exception from qt thread otherwise we SEGV garbage collector
|
||||
# instead, re-create using the exception message, special casing AssertionError and SkipTest
|
||||
e = None
|
||||
|
||||
Reference in New Issue
Block a user