lib: remove INVALID_PARAMS status
[babeltrace.git] / tests / bindings / python / bt2 / test_query_executor.py
index bc20a719b3dca0000ee9a1fa123ed51041ddc0ef..a5d852f57c745f7b0fdef4a41bd551a1247086c7 100644 (file)
@@ -101,7 +101,7 @@ class QueryExecutorTestCase(unittest.TestCase):
             res = bt2.QueryExecutor().query(MySink, 'obj', [17, 23])
 
         exc = ctx.exception
-        self.assertEqual(len(exc), 1)
+        self.assertEqual(len(exc), 2)
         cause = exc[0]
         self.assertIsInstance(cause, bt2.error._ComponentClassErrorCause)
         self.assertIn('raise ValueError', cause.message)
@@ -153,21 +153,6 @@ class QueryExecutorTestCase(unittest.TestCase):
         with self.assertRaises(ValueError):
             res = bt2.QueryExecutor().query(MySink, 'obj', [17, 23], 12345)
 
-    def test_query_invalid_params(self):
-        class MySink(bt2._UserSinkComponent):
-            def _consume(self):
-                pass
-
-            def _graph_is_configured(self):
-                pass
-
-            @classmethod
-            def _query(cls, query_exec, obj, params, log_level):
-                raise bt2.InvalidParams
-
-        with self.assertRaises(bt2.InvalidParams):
-            res = bt2.QueryExecutor().query(MySink, 'obj', [17, 23])
-
     def test_query_try_again(self):
         class MySink(bt2._UserSinkComponent):
             def _consume(self):
This page took 0.02354 seconds and 4 git commands to generate.