X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Fdata%2Fplugins%2Fflt.utils.trimmer%2Fbt_plugin_trimmer_test.py;h=0fdb78f9f56ff4f94b5cdfff10c69ec67200b83f;hp=e1db25edb3239686795557e2c8886f455b3533f0;hb=cfbd7cf3bde05e8a6606478889dcd663604ef7b5;hpb=e3f7fd922b3dc8fd92ad9397f4f9e175ff843b2a diff --git a/tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py b/tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py index e1db25ed..0fdb78f9 100644 --- a/tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py +++ b/tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py @@ -44,9 +44,11 @@ class TheIteratorOfAllEvil(bt2._UserMessageIterator): else: raise StopIteration + @bt2.plugin_component_class -class TheSourceOfAllEvil(bt2._UserSourceComponent, - message_iterator_class=TheIteratorOfAllEvil): +class TheSourceOfAllEvil( + bt2._UserSourceComponent, message_iterator_class=TheIteratorOfAllEvil +): def __init__(self, params): tc = self._create_trace_class() @@ -54,10 +56,12 @@ class TheSourceOfAllEvil(bt2._UserSourceComponent, # smaller than this offset (in other words, a time that it's not # possible to represent with this clock class). cc = self._create_clock_class(frequency=1, offset=bt2.ClockClassOffset(10000)) - sc = tc.create_stream_class(default_clock_class=cc, - supports_packets=True, - packets_have_beginning_default_clock_snapshot=True, - packets_have_end_default_clock_snapshot=True) + sc = tc.create_stream_class( + default_clock_class=cc, + supports_packets=True, + packets_have_beginning_default_clock_snapshot=True, + packets_have_end_default_clock_snapshot=True, + ) ec1 = sc.create_event_class(name='event 1') ec2 = sc.create_event_class(name='event 2') self._add_output_port('out', (tc, sc, ec1, ec2, params))