1
0

some clean-ups now that we require python 3.10

This commit is contained in:
SomberNight
2025-01-10 13:26:39 +00:00
parent fb5a1af666
commit be2cd02e54
5 changed files with 9 additions and 45 deletions

View File

@@ -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