Fix: CTF writer: validate and set `timestamp_begin`/`timestamp_end`
[babeltrace.git] / tests / bindings / python / babeltrace / test_ctf_writer_empty_packet.py
index f62d9ae06bc5ac7cfcae4b08f7aa56e3ffb97f0e..bc29b02f66e4e269a7a5020c73636723a2e824c4 100644 (file)
@@ -58,13 +58,6 @@ class CtfWriterEmptyPacketTestCase(unittest.TestCase):
             event.payload('int_field').value = i
             stream.append_event(event)
         stream.flush()
-
-        # The CTF writer will not be able to populate the packet context's
-        # timestamp_begin and timestamp_end fields if it is asked to flush
-        # without any queued events.
-        with self.assertRaises(ValueError):
-            stream.flush()
-
         packet_context = stream.packet_context
         packet_context.field('timestamp_begin').value = 1
         packet_context.field('timestamp_end').value = 123456
This page took 0.02322 seconds and 4 git commands to generate.