lib: make discarded events/packets support and clock snapshots optional
[babeltrace.git] / tests / bindings / python / bt2 / test_event.py
index 6f818cec407d03581ab7c74352f94b3def39470b..d420b33f67fccc01c0e0a27018e4515f20093676 100644 (file)
@@ -11,7 +11,7 @@ class EventTestCase(unittest.TestCase):
                                    with_ep=False):
 
         class MyIter(bt2._UserMessageIterator):
-            def __init__(self):
+            def __init__(self, self_output_port):
                 self._at = 0
 
             def __next__(self):
@@ -170,7 +170,7 @@ class EventTestCase(unittest.TestCase):
 
     def test_no_clock_value(self):
         msg = self._create_test_event_message(with_clockclass=False)
-        with self.assertRaises(bt2.NoDefaultClockClass):
+        with self.assertRaises(bt2.NonexistentClockSnapshot):
             msg.default_clock_snapshot
 
     def test_stream(self):
This page took 0.0263 seconds and 4 git commands to generate.