aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyGHDL/dom/Misc.py6
-rw-r--r--testsuite/pyunit/libghdl/Initialize.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/pyGHDL/dom/Misc.py b/pyGHDL/dom/Misc.py
index af8c6247a..35149b3a2 100644
--- a/pyGHDL/dom/Misc.py
+++ b/pyGHDL/dom/Misc.py
@@ -33,9 +33,9 @@ class Design(VHDLModel_Design):
libghdl.set_option(b"--std=08")
- # Finish initialization. This will load the standard package.
-# if libghdl.analyze_init_status() != 0:
-# raise LibGHDLException("Error initializing 'libghdl'.")
+ # Finish initialization. This will load the standard package.
+ if libghdl.analyze_init_status() != 0:
+ raise LibGHDLException("Error initializing 'libghdl'.")
@export
class Library(VHDLModel_Library):
diff --git a/testsuite/pyunit/libghdl/Initialize.py b/testsuite/pyunit/libghdl/Initialize.py
index 7ad00a995..0a46fe8b4 100644
--- a/testsuite/pyunit/libghdl/Initialize.py
+++ b/testsuite/pyunit/libghdl/Initialize.py
@@ -31,8 +31,8 @@ class Instantiate(TestCase):
libghdl.set_option(b"--std=08")
# Finish initialization. This will load the standard package.
-# if libghdl.analyze_init_status() != 0:
-# self.fail("libghdl initialization error")
+ if libghdl.analyze_init_status() != 0:
+ self.fail("libghdl initialization error")
# Load the file
file_id = name_table.Get_Identifier(str(self._filename).encode("utf_8"))