diff options
author | Andrej Rode <mail@andrejro.de> | 2019-03-30 11:17:20 +0100 |
---|---|---|
committer | Andrej Rode <mail@andrejro.de> | 2019-03-30 16:02:01 +0100 |
commit | d6e217cbc00ec0333ba030ab2d84c31b7dbb77d5 (patch) | |
tree | e9b2fbb1bc4b5c6392aa36b091650c0d73c3d2ad /gr-blocks/python/blocks/qa_skiphead.py | |
parent | 8ecdef41e47641f820fff73e0ad11c0890544b71 (diff) |
qa: first copy tags from the vector sink before indexing
Diffstat (limited to 'gr-blocks/python/blocks/qa_skiphead.py')
-rw-r--r-- | gr-blocks/python/blocks/qa_skiphead.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-blocks/python/blocks/qa_skiphead.py b/gr-blocks/python/blocks/qa_skiphead.py index 36f3f3e797..2370978d8c 100644 --- a/gr-blocks/python/blocks/qa_skiphead.py +++ b/gr-blocks/python/blocks/qa_skiphead.py @@ -123,13 +123,14 @@ class test_skiphead(gr_unittest.TestCase): self.tb.connect(src1, op, dst1) self.tb.run() dst_data = dst1.data() + dst_tags = dst1.tags() self.assertEqual(expected_result, dst_data) - self.assertEqual(dst1.tags()[0].offset, 25, "Tag offset is incorrect") - self.assertEqual(len(dst1.tags()), 1, "Wrong number of tags received") + self.assertEqual(dst_tags[0].offset, 25, "Tag offset is incorrect") + self.assertEqual(len(dst_tags), 1, "Wrong number of tags received") self.assertEqual(pmt.to_python( - dst1.tags()[0].key), "baz", "Tag key is incorrect") + dst_tags[0].key), "baz", "Tag key is incorrect") self.assertEqual(pmt.to_python( - dst1.tags()[0].value), "qux", "Tag value is incorrect") + dst_tags[0].value), "qux", "Tag value is incorrect") if __name__ == '__main__': gr_unittest.run(test_skiphead, "test_skiphead.xml") |