bt2: field.py: add index check in `selected_option_index` setter of `_VariantField`
[babeltrace.git] / tests / bindings / python / bt2 / test_error.py
index 9c2a9e52df3a04887323786cb1798da0589ae4d3..2a2703b6f591aa4fc46a2795999d67b4581ef9e6 100644 (file)
@@ -70,7 +70,7 @@ class SinkWithFailingQuery(bt2._UserSinkComponent):
         pass
 
     @staticmethod
-    def _user_query(priv_executor, obj, params):
+    def _user_query(priv_executor, obj, params, method_obj):
         raise ValueError('Query is failing')
 
 
@@ -88,7 +88,7 @@ class ErrorTestCase(unittest.TestCase):
     def test_current_thread_error_none(self):
         # When a bt2._Error is raised, it steals the current thread's error.
         # Verify that it is now NULL.
-        exc = self._run_failing_graph(SourceWithFailingInit, WorkingSink)
+        self._run_failing_graph(SourceWithFailingInit, WorkingSink)
         self.assertIsNone(native_bt.current_thread_take_error())
 
     def test_len(self):
This page took 0.024833 seconds and 4 git commands to generate.