bt2: rename CreationError to MemoryError, handle it in and out of Python bindings
[babeltrace.git] / tests / bindings / python / bt2 / utils.py
index d52a474c1e7337aefafb40e78c8a6a2d03947646..fb4003a3e76a452ce6a5e121a26083bae67e330f 100644 (file)
@@ -23,6 +23,7 @@ import bt2
 #
 # The value returned by the callable is returned by run_in_component_init.
 
+
 def run_in_component_init(func):
     class MySink(bt2._UserSinkComponent):
         def __init__(self, params):
@@ -32,6 +33,9 @@ def run_in_component_init(func):
         def _consume(self):
             pass
 
+        def _graph_is_configured(self):
+            pass
+
     g = bt2.Graph()
     res_bound = None
     g.add_component(MySink, 'comp')
@@ -49,8 +53,10 @@ def run_in_component_init(func):
     del res_bound
     return res
 
+
 # Create an empty trace class with default values.
 
+
 def get_default_trace_class():
     def f(comp_self):
         return comp_self._create_trace_class()
This page took 0.035619 seconds and 4 git commands to generate.