summaryrefslogtreecommitdiff
path: root/gr-utils/modtool/tests/test_modtool.py
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-05-29 10:11:43 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commit13b6fc6435e21926977f33e90d93f6fb9530931c (patch)
tree787648651682a624241544d317c02ac740ba5136 /gr-utils/modtool/tests/test_modtool.py
parentd933a40f9d117ae3f73600b3b8b76494e9d6ed3d (diff)
pybind: clean up unused script and modtool tests
Diffstat (limited to 'gr-utils/modtool/tests/test_modtool.py')
-rw-r--r--gr-utils/modtool/tests/test_modtool.py23
1 files changed, 16 insertions, 7 deletions
diff --git a/gr-utils/modtool/tests/test_modtool.py b/gr-utils/modtool/tests/test_modtool.py
index c233337b55..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 """