Move to kernel style SPDX license identifiers
[babeltrace.git] / tests / data / plugins / flt.utils.muxer / bt_plugin_muxer_test.py
index f8135fc6fdaf6c32fa320d8c59e91cfda9da8c2e..bc447b4343cee236e2666b68b2fb372bac948733 100644 (file)
@@ -1,8 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Copyright (C) 2019 EfficiOS Inc.
+#
+
 import bt2
 
 
 class TheIteratorOfConfusion(bt2._UserMessageIterator):
-    def __init__(self, port):
+    def __init__(self, config, port):
         self._at = 0
         test_name = port.user_data[0]
         TEST_CASES[test_name].create_msgs(self, port.user_data[1:])
@@ -19,9 +24,7 @@ class TheIteratorOfConfusion(bt2._UserMessageIterator):
 class TheSourceOfConfusion(
     bt2._UserSourceComponent, message_iterator_class=TheIteratorOfConfusion
 ):
-    def __init__(self, params, obj):
-        tc = self._create_trace_class()
-
+    def __init__(self, config, params, obj):
         test_name = str(params['test-name'])
 
         TEST_CASES[test_name].source_setup(self, test_name)
@@ -423,7 +426,7 @@ class DiffInactivityMsgCs:
         src._add_output_port('out2', (test_name, cc2))
 
     def create_msgs(msg_iter, params):
-        cc, = params
+        (cc,) = params
         sb_msg = msg_iter._create_message_iterator_inactivity_message(cc, 0)
         msg_iter._msgs = [sb_msg]
 
This page took 0.023575 seconds and 4 git commands to generate.