bt2: make bt2.Error wrap current thread's error
[babeltrace.git] / tests / bindings / python / bt2 / test_component_class.py
index 857d15270dd3312dc5ee56960daa75d31499a57c..bbd9774ad99397fcf3561733ea8c6a98cd79781d 100644 (file)
@@ -23,7 +23,7 @@ import bt2
 
 class UserComponentClassTestCase(unittest.TestCase):
     def _test_no_init(self, cls):
-        with self.assertRaises(bt2.Error):
+        with self.assertRaises(RuntimeError):
             cls()
 
     def test_no_init_source(self):
This page took 0.023074 seconds and 4 git commands to generate.