X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_error.py;h=b09dded2b36e267c2fb8ff7bf9d93804c5e50930;hb=bf403eb29cc2bb21f9cc678fb74c20ff4087c146;hp=ca750aea6cd4acfe80987d836eab1e4c07d1af23;hpb=8d6ef9dfa268f6f31f5996e363cafb3a2005d862;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_error.py b/tests/bindings/python/bt2/test_error.py index ca750aea..b09dded2 100644 --- a/tests/bindings/python/bt2/test_error.py +++ b/tests/bindings/python/bt2/test_error.py @@ -70,7 +70,7 @@ class SinkWithFailingQuery(bt2._UserSinkComponent): pass @staticmethod - def _user_query(executor, obj, params, log_level): + def _user_query(priv_executor, obj, params): raise ValueError('Query is failing') @@ -177,10 +177,10 @@ class ErrorTestCase(unittest.TestCase): self.assertIsNone(cause.plugin_name) def test_component_class_error_cause(self): - q = bt2.QueryExecutor() + q = bt2.QueryExecutor(SinkWithFailingQuery, 'hello') with self.assertRaises(bt2._Error) as ctx: - q.query(SinkWithFailingQuery, 'hello') + q.query() cause = ctx.exception[0] self.assertIs(type(cause), bt2._ComponentClassErrorCause)