From cd652ee13529ba2395056baa3f37578e6e91c4b2 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Fri, 15 Nov 2024 14:17:10 +0100 Subject: [PATCH] Recent versions of pyface don't have a pyface.__version__ --- tvtk/tests/test_garbage_collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvtk/tests/test_garbage_collection.py b/tvtk/tests/test_garbage_collection.py index 6ab764e5..b995f3ff 100644 --- a/tvtk/tests/test_garbage_collection.py +++ b/tvtk/tests/test_garbage_collection.py @@ -20,7 +20,7 @@ if ETSConfig.toolkit in ('qt4', 'qt'): import pyface from pyface.qt import api_name - if api_name in ('pyqt', 'pyqt5') and \ + if api_name in ('pyqt', 'pyqt5') and hasattr(pyface, "__version__") and \ Version(pyface.__version__) < Version('7.5.0.dev0'): bad_pyqt5 = True