From 07a11fbf2e71811c3760a029a2d56c162bae2e78 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 18 Dec 2024 15:26:34 -0500 Subject: [PATCH] FIX: Got another --- tvtk/tests/test_tvtk.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tvtk/tests/test_tvtk.py b/tvtk/tests/test_tvtk.py index 6ea05862..8de94a5a 100644 --- a/tvtk/tests/test_tvtk.py +++ b/tvtk/tests/test_tvtk.py @@ -828,7 +828,7 @@ def test_all_instantiable(self): tvtk_name = get_tvtk_name(name) tvtk_klass = getattr(tvtk, tvtk_name, None) if on_gha: - print(f"{tvtk_name} ({name})") + print(tvtk_name) try: tvtk_klass() # TypeError: super(type, obj): obj must be an instance or subtype of type @@ -865,6 +865,8 @@ def get_min_max_value(vtk_klass, vtk_attr_name): except AttributeError: return None, None + if on_gha: + print("\n::group::TVTK trait ranges") for name in self.names: vtk_klass = getattr(vtk, name) tvtk_klass_name = get_tvtk_name(name) @@ -875,11 +877,15 @@ def get_min_max_value(vtk_klass, vtk_attr_name): 'OpenGLRenderWindow', 'RenderWindow']: continue + + if on_gha: + print(tvtk_klass_name) + try: obj = getattr(tvtk, tvtk_klass_name)() except Exception: # testing for instantiation is above - pass + continue for trait_name in obj.editable_traits(): if trait_name in ['_in_set', '_vtk_obj']: