lib: split real FC/field into single and double prec FC/field
[babeltrace.git] / tests / bindings / python / bt2 / test_event.py
index 9c71c0204e182f0ca8c711d8d9810f7a5e5539ca..a770c8f5d58c4316b6f5de9346e509783415b7c6 100644 (file)
@@ -39,7 +39,7 @@ class EventTestCase(unittest.TestCase):
         with_packet=False,
     ):
         class MyIter(bt2._UserMessageIterator):
-            def __init__(self, self_output_port):
+            def __init__(self, config, self_output_port):
                 self._at = 0
                 self._msgs = [self._create_stream_beginning_message(test_obj.stream)]
 
@@ -81,7 +81,7 @@ class EventTestCase(unittest.TestCase):
                 return msg
 
         class MySrc(bt2._UserSourceComponent, message_iterator_class=MyIter):
-            def __init__(self, params, obj):
+            def __init__(self, config, params, obj):
                 self._add_output_port('out')
                 tc = self._create_trace_class()
 
@@ -95,7 +95,7 @@ class EventTestCase(unittest.TestCase):
                     cc = tc.create_structure_field_class()
                     cc += [
                         ('cpu_id', tc.create_signed_integer_field_class(8)),
-                        ('stuff', tc.create_real_field_class()),
+                        ('stuff', tc.create_double_precision_real_field_class()),
                     ]
 
                 # packet context (stream-class-defined)
@@ -105,7 +105,10 @@ class EventTestCase(unittest.TestCase):
                     pc = tc.create_structure_field_class()
                     pc += [
                         ('something', tc.create_unsigned_integer_field_class(8)),
-                        ('something_else', tc.create_real_field_class()),
+                        (
+                            'something_else',
+                            tc.create_double_precision_real_field_class(),
+                        ),
                     ]
 
                 stream_class = tc.create_stream_class(
This page took 0.024882 seconds and 4 git commands to generate.