bt2: change some bt2.CreationError usages to ValueError
[babeltrace.git] / tests / bindings / python / bt2 / test_trace_class.py
index 265b0de8b40ed8ac0604216688235a870a7a8a95..4f19b4a2bc8c173d9986ab68119a93600fe232b8 100644 (file)
@@ -45,7 +45,7 @@ class TraceClassTestCase(unittest.TestCase):
         tc = run_in_component_init(f)
         self.assertTrue(tc.assigns_automatic_stream_class_id)
 
-        with self.assertRaises(bt2.CreationError):
+        with self.assertRaises(ValueError):
             sc1 = tc.create_stream_class(23)
 
     def test_no_assigns_automatic_stream_class_id(self):
@@ -66,7 +66,7 @@ class TraceClassTestCase(unittest.TestCase):
         self.assertFalse(tc.assigns_automatic_stream_class_id)
 
         # In this mode, it is required to pass an explicit id.
-        with self.assertRaises(bt2.CreationError):
+        with self.assertRaises(ValueError):
             tc.create_stream_class()
 
     def test_env_get(self):
This page took 0.030757 seconds and 4 git commands to generate.