X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_component_class.py;h=6664b7a7020ef2c1afc5ccd793a54688ac3a670c;hb=7c14d64103ff43ddeb43aaa04df17beb107f1f78;hp=00a952c2b35d2a02c83809d4e9e90bfeec69990f;hpb=8c20dd54512444781307a70f88c51ab60ba6cb2d;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_component_class.py b/tests/bindings/python/bt2/test_component_class.py index 00a952c2..6664b7a7 100644 --- a/tests/bindings/python/bt2/test_component_class.py +++ b/tests/bindings/python/bt2/test_component_class.py @@ -205,7 +205,7 @@ class UserComponentClassTestCase(unittest.TestCase): pass @classmethod - def _user_query(cls, priv_query_exec, obj, params): + def _user_query(cls, priv_query_exec, obj, params, method_obj): return ... with self.assertRaises(bt2._Error): @@ -217,7 +217,7 @@ class UserComponentClassTestCase(unittest.TestCase): pass @classmethod - def _user_query(cls, priv_query_exec, obj, params): + def _user_query(cls, priv_query_exec, obj, params, method_obj): nonlocal query_params query_params = params return None @@ -235,7 +235,7 @@ class UserComponentClassTestCase(unittest.TestCase): pass @classmethod - def _user_query(cls, priv_query_exec, obj, params): + def _user_query(cls, priv_query_exec, obj, params, method_obj): nonlocal query_log_level query_log_level = priv_query_exec.logging_level @@ -252,7 +252,7 @@ class UserComponentClassTestCase(unittest.TestCase): pass @staticmethod - def _user_query(priv_query_exec, obj, params): + def _user_query(priv_query_exec, obj, params, method_obj): return res = bt2.QueryExecutor(MySink, 'obj', None).query() @@ -264,7 +264,7 @@ class UserComponentClassTestCase(unittest.TestCase): pass @classmethod - def _user_query(cls, priv_query_exec, obj, params): + def _user_query(cls, priv_query_exec, obj, params, method_obj): nonlocal query_params query_params = params return 17.5 @@ -282,7 +282,7 @@ class UserComponentClassTestCase(unittest.TestCase): pass @classmethod - def _user_query(cls, priv_query_exec, obj, params): + def _user_query(cls, priv_query_exec, obj, params, method_obj): nonlocal query_params query_params = params return {'null': None, 'bt2': 'BT2'} @@ -320,7 +320,7 @@ class ComponentClassTestCase(unittest.TestCase): pass @classmethod - def _user_query(cls, priv_query_exec, obj, params): + def _user_query(cls, priv_query_exec, obj, params, method_obj): return [obj, params, 23] self._py_comp_cls = MySink