diff options
author | Tom Rondeau | 2013-02-07 12:16:42 -0500 |
---|---|---|
committer | Tom Rondeau | 2013-02-07 12:16:42 -0500 |
commit | 30b4428b23dad07c74381d790ff67dffa948aa40 (patch) | |
tree | 411ff49401ce6bbb04ac0c4b90d70a7f7f065a8b /gnuradio-core | |
parent | 23e56ce76921dc6aafd868dac421023646641925 (diff) | |
download | gnuradio-30b4428b23dad07c74381d790ff67dffa948aa40.tar.gz gnuradio-30b4428b23dad07c74381d790ff67dffa948aa40.tar.bz2 gnuradio-30b4428b23dad07c74381d790ff67dffa948aa40.zip |
core: QA code import fix.
Prevents getting pmt module from the installed library.
Diffstat (limited to 'gnuradio-core')
-rwxr-xr-x | gnuradio-core/src/python/gnuradio/gr/qa_tag_utils.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_tag_utils.py b/gnuradio-core/src/python/gnuradio/gr/qa_tag_utils.py index daf87f912..d0c2f2f22 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_tag_utils.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_tag_utils.py @@ -22,9 +22,7 @@ from gnuradio import gr, gr_unittest import tag_utils - -try: from gruel import pmt -except: import pmt +import pmt class test_tag_utils (gr_unittest.TestCase): @@ -38,9 +36,9 @@ class test_tag_utils (gr_unittest.TestCase): def test_001(self): t = gr.gr_tag_t() t.offset = 10 - t.key = pmt.pmt_string_to_symbol('key') - t.value = pmt.pmt_from_long(23) - t.srcid = pmt.pmt_from_bool(False) + t.key = pmt.string_to_symbol('key') + t.value = pmt.from_long(23) + t.srcid = pmt.from_bool(False) pt = tag_utils.tag_to_python(t) self.assertEqual(pt.key, 'key') self.assertEqual(pt.value, 23) |