diff --git a/tests/unit/DependencyScan.py b/tests/unit/DependencyScan.py index a3f571fd..40b0e89c 100644 --- a/tests/unit/DependencyScan.py +++ b/tests/unit/DependencyScan.py @@ -43,7 +43,7 @@ from pyGHDL.dom.NonStandard import Design as DOMDesign, Document withGHDL = True -except ImportError: +except (ImportError, ModuleNotFoundError) as ex: # pragma: no cover withGHDL = False @@ -101,4 +101,4 @@ def test_VHDLLibrary(self): print() print(f"Toplevel: {design.TopLevel}") hierarchy = design.TopLevel.HierarchyVertex.ConvertToTree() - # print(hierarchy.Render()) + print(hierarchy.Render())