projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: remove NonexistentClockSnapshot exception type
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_event.py
diff --git
a/tests/bindings/python/bt2/test_event.py
b/tests/bindings/python/bt2/test_event.py
index 74fe7cff1e374d4e044fda296b5748f3dedfdbf7..ab65e0fa4c270e97be9632e08ce8a30186e106ff 100644
(file)
--- a/
tests/bindings/python/bt2/test_event.py
+++ b/
tests/bindings/python/bt2/test_event.py
@@
-229,7
+229,9
@@
class EventTestCase(unittest.TestCase):
def test_no_clock_value(self):
msg = self._create_test_event_message(with_clockclass=False)
def test_no_clock_value(self):
msg = self._create_test_event_message(with_clockclass=False)
- with self.assertRaises(bt2.NonexistentClockSnapshot):
+ with self.assertRaisesRegex(
+ ValueError, 'stream class has no default clock class'
+ ):
msg.default_clock_snapshot
def test_stream(self):
msg.default_clock_snapshot
def test_stream(self):
This page took
0.023859 seconds
and
4
git commands to generate.