lib: make packets and packet messages optional, disabled by default
[babeltrace.git] / tests / bindings / python / bt2 / test_field_class.py
index 012545af11411b3353c7033558eaaaf7ab957768..bb73da48c03c41646faacdca9daa3f1ea4a1e766 100644 (file)
@@ -451,7 +451,7 @@ class VariantFieldClassTestCase(_TestFieldContainer, unittest.TestCase):
 
         # The path to the selector field is resolved when the sequence is
         # actually used, for example in a packet context.
-        self._tc.create_stream_class(packet_context_field_class=outer_struct_fc)
+        self._tc.create_stream_class(supports_packets=True, packet_context_field_class=outer_struct_fc)
 
         return fc
 
@@ -545,7 +545,8 @@ class DynamicArrayFieldClassTestCase(unittest.TestCase):
 
         # The path to the length field is resolved when the sequence is
         # actually used, for example in a packet context.
-        self._tc.create_stream_class(packet_context_field_class=outer_struct_fc)
+        self._tc.create_stream_class(packet_context_field_class=outer_struct_fc,
+                                     supports_packets=True)
 
         return fc
 
This page took 0.025028 seconds and 4 git commands to generate.