summaryrefslogtreecommitdiff
path: root/gr-utils/modtool/tests/test_modtool.py
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
committerMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
commite76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch)
tree1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gr-utils/modtool/tests/test_modtool.py
parent98348e37209aa7daeb96fe5ead815e5b083dc6da (diff)
parent39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff)
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG. Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gr-utils/modtool/tests/test_modtool.py')
-rw-r--r--gr-utils/modtool/tests/test_modtool.py24
1 files changed, 16 insertions, 8 deletions
diff --git a/gr-utils/modtool/tests/test_modtool.py b/gr-utils/modtool/tests/test_modtool.py
index 89b665d0bd..c118fe83bc 100644
--- a/gr-utils/modtool/tests/test_modtool.py
+++ b/gr-utils/modtool/tests/test_modtool.py
@@ -23,13 +23,22 @@ try:
except:
skip_pylint_test = True
-from modtool.core import ModToolNewModule
-from modtool.core import ModToolAdd
-from modtool.core import ModToolDisable
-from modtool.core import ModToolException
-from modtool.core import ModToolMakeYAML
-from modtool.core import ModToolRename
-from modtool.core import ModToolRemove
+try: # for debugging, full path must be given
+ from gnuradio.modtool.core import ModToolNewModule
+ from gnuradio.modtool.core import ModToolAdd
+ from gnuradio.modtool.core import ModToolDisable
+ from gnuradio.modtool.core import ModToolException
+ from gnuradio.modtool.core import ModToolMakeYAML
+ from gnuradio.modtool.core import ModToolRename
+ from gnuradio.modtool.core import ModToolRemove
+except:
+ from modtool.core import ModToolNewModule
+ from modtool.core import ModToolAdd
+ from modtool.core import ModToolDisable
+ from modtool.core import ModToolException
+ from modtool.core import ModToolMakeYAML
+ from modtool.core import ModToolRename
+ from modtool.core import ModToolRemove
class TestModToolCore(unittest.TestCase):
""" The tests for the modtool core """
@@ -101,7 +110,6 @@ class TestModToolCore(unittest.TestCase):
self.assertTrue(path.isdir(path.join(module_dir, 'include')))
self.assertTrue(path.isdir(path.join(module_dir, 'docs')))
self.assertTrue(path.isdir(path.join(module_dir, 'cmake')))
- self.assertTrue(path.isdir(path.join(module_dir, 'swig')))
self.assertTrue(path.exists(path.join(module_dir, 'CMakeLists.txt')))
## The check for object instantiation ##