[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/02: blocks: fix for qa_python_message_pa
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/02: blocks: fix for qa_python_message_passing and new system port |
Date: |
Fri, 2 May 2014 21:44:53 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 85bcdd7641602a6d3e1bf85f0ec9831402056bb9
Author: Tim O'Shea <address@hidden>
Date: Fri May 2 13:46:51 2014 -0400
blocks: fix for qa_python_message_passing and new system port
---
gr-blocks/python/blocks/qa_python_message_passing.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/gr-blocks/python/blocks/qa_python_message_passing.py
b/gr-blocks/python/blocks/qa_python_message_passing.py
index 6eade75..e391c5f 100644
--- a/gr-blocks/python/blocks/qa_python_message_passing.py
+++ b/gr-blocks/python/blocks/qa_python_message_passing.py
@@ -98,10 +98,8 @@ class test_python_message_passing(gr_unittest.TestCase):
self.tb.msg_connect(msg_gen, 'out_port', msg_cons, 'in_port')
# Verify that the messgae port query functions work
- self.assertEqual(pmt.symbol_to_string(pmt.vector_ref(
- msg_gen.message_ports_out(), 0)), 'out_port')
- self.assertEqual(pmt.symbol_to_string(pmt.vector_ref(
- msg_cons.message_ports_in(), 0)), 'in_port')
+ self.assertEqual(pmt.to_python(msg_gen.message_ports_out())[0],
'out_port')
+ self.assertEqual('in_port' in
pmt.to_python(msg_cons.message_ports_in()), True)
# Run to verify message passing
self.tb.start()