diff --git a/echo/qt/tests/helpers.py b/echo/qt/tests/helpers.py index 9d903a29..0cc4f077 100644 --- a/echo/qt/tests/helpers.py +++ b/echo/qt/tests/helpers.py @@ -5,6 +5,7 @@ "SKIP_QT_TEST" ] + def package_installed(package): try: __import__(package) @@ -12,6 +13,7 @@ def package_installed(package): except ImportError: return False + PYQT5_INSTALLED = package_installed("PyQt5") PYQT6_INSTALLED = package_installed("PyQt6") PYSIDE2_INSTALLED = package_installed("PySide2") diff --git a/echo/qt/tests/test_connect.py b/echo/qt/tests/test_connect.py index ee652267..41b6a48e 100644 --- a/echo/qt/tests/test_connect.py +++ b/echo/qt/tests/test_connect.py @@ -20,8 +20,6 @@ def test_connect_checkable_button(): - - class Test(object): a = CallbackProperty() b = CallbackProperty(True)