summaryrefslogtreecommitdiff
path: root/tests/demo_blocks.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/demo_blocks.py')
-rw-r--r--tests/demo_blocks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/demo_blocks.py b/tests/demo_blocks.py
index 7f9c12f..8550402 100644
--- a/tests/demo_blocks.py
+++ b/tests/demo_blocks.py
@@ -69,7 +69,7 @@ class TagSource(gras.Block):
def work(self, ins, outs):
offset = self.get_produced(0)
- tag = gras.Tag(offset, Py2PMC(self._values[0]))
+ tag = gras.Tag(offset, PMC_M(self._values[0]))
self.post_output_tag(0, tag)
self.produce(0, len(outs[0]))
self._values = self._values[1:]
@@ -91,5 +91,5 @@ class TagSink(gras.Block):
max_read = self.get_consumed(0) + len(ins[0])
for tag in self.get_input_tags(0):
if tag.offset < max_read:
- self._values.append(PMC2Py(tag.object))
+ self._values.append(tag.object())
self.consume(0, len(ins[0]))