From: Michael R. Crusoe <crusoe@debian.org>
Subject: Recent versions of pyface don't have a pyface.__version__
Forwarded: https://github.com/enthought/mayavi/pull/1318
--- mayavi2.orig/tvtk/tests/test_garbage_collection.py
+++ mayavi2/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
 
