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