aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/dom/__init__.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-28 23:53:07 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-28 23:53:07 +0100
commitd5b65813b36bf0e179d514ebd872a8b4f5cc79e7 (patch)
tree1fbdb4ce06b39938f0e6694cd24058485eb82538 /testsuite/pyunit/dom/__init__.py
parent13fd5ccc6a8b9e59212b5493eb319c6f932eb906 (diff)
downloadghdl-d5b65813b36bf0e179d514ebd872a8b4f5cc79e7.tar.gz
ghdl-d5b65813b36bf0e179d514ebd872a8b4f5cc79e7.tar.bz2
ghdl-d5b65813b36bf0e179d514ebd872a8b4f5cc79e7.zip
Allow execution of tests within testsuite.
Diffstat (limited to 'testsuite/pyunit/dom/__init__.py')
-rw-r--r--testsuite/pyunit/dom/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/pyunit/dom/__init__.py b/testsuite/pyunit/dom/__init__.py
index 768810d72..9c103eb6a 100644
--- a/testsuite/pyunit/dom/__init__.py
+++ b/testsuite/pyunit/dom/__init__.py
@@ -1,6 +1,9 @@
from unittest import TestSuite
-from testsuite.pyunit.dom import SimpleEntity
+try:
+ from testsuite.pyunit.dom import SimpleEntity
+except ModuleNotFoundError:
+ from pyunit.dom import SimpleEntity
def load_tests(loader, testCases, pattern):
suite = TestSuite()