lib: strictly type function return status enumerations
[babeltrace.git] / tests / plugins / src.ctf.fs / query / test_query_trace_info.py
index b3924640ca2fa8f2885eb2e209bb673832bcfc11..0698975a60d442473eb476c402369dc376ff5fc2 100644 (file)
@@ -96,28 +96,28 @@ class QueryTraceInfoClockOffsetTestCase(unittest.TestCase):
         self._check(trace, -2000000002)
 
     def test_clock_class_offset_s_wrong_type(self):
-        with self.assertRaises(bt2.InvalidQueryParams):
+        with self.assertRaises(bt2.InvalidParams):
             self._executor.query(self._fs, 'trace-info', {
                 'paths': self._paths,
                 'clock-class-offset-s': "2",
             })
 
     def test_clock_class_offset_s_wrong_type_none(self):
-        with self.assertRaises(bt2.InvalidQueryParams):
+        with self.assertRaises(bt2.InvalidParams):
             self._executor.query(self._fs, 'trace-info', {
                 'paths': self._paths,
                 'clock-class-offset-s': None,
             })
 
     def test_clock_class_offset_ns_wrong_type(self):
-        with self.assertRaises(bt2.InvalidQueryParams):
+        with self.assertRaises(bt2.InvalidParams):
             self._executor.query(self._fs, 'trace-info', {
                 'paths': self._paths,
                 'clock-class-offset-ns': "2",
             })
 
     def test_clock_class_offset_ns_wrong_type_none(self):
-        with self.assertRaises(bt2.InvalidQueryParams):
+        with self.assertRaises(bt2.InvalidParams):
             self._executor.query(self._fs, 'trace-info', {
                 'paths': self._paths,
                 'clock-class-offset-ns': None,
This page took 0.024161 seconds and 4 git commands to generate.