X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_clock_class.py;h=9bc6bae7497593be6b15e7da9ccd941268b19f30;hb=57081273d1191fc79edc101af619fab96b72460d;hp=48ae9602fb7300858253605c92d65933254dcfc6;hpb=66964f3f7b0b7e3b774ddb043b0f197018d23730;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_clock_class.py b/tests/bindings/python/bt2/test_clock_class.py index 48ae9602..9bc6bae7 100644 --- a/tests/bindings/python/bt2/test_clock_class.py +++ b/tests/bindings/python/bt2/test_clock_class.py @@ -18,9 +18,8 @@ import unittest import uuid -import copy import bt2 -from utils import run_in_component_init +from utils import run_in_component_init, TestOutputPortMessageIterator class ClockClassOffsetTestCase(unittest.TestCase): @@ -244,8 +243,8 @@ class ClockSnapshotTestCase(unittest.TestCase): self._graph = bt2.Graph() self._src_comp = self._graph.add_component(MySrc, 'my_source') - self._msg_iter = self._graph.create_output_port_message_iterator( - self._src_comp.output_ports['out'] + self._msg_iter = TestOutputPortMessageIterator( + self._graph, self._src_comp.output_ports['out'] ) for i, msg in enumerate(self._msg_iter):