projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: prepend underscore to exceptions not meant to be raised by user
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_component_class.py
diff --git
a/tests/bindings/python/bt2/test_component_class.py
b/tests/bindings/python/bt2/test_component_class.py
index bbd9774ad99397fcf3561733ea8c6a98cd79781d..7ed554d674256677723f6c1a8211b4d9b72ec238 100644
(file)
--- a/
tests/bindings/python/bt2/test_component_class.py
+++ b/
tests/bindings/python/bt2/test_component_class.py
@@
-214,7
+214,7
@@
class UserComponentClassTestCase(unittest.TestCase):
def _graph_is_configured(self):
pass
def _graph_is_configured(self):
pass
- with self.assertRaises(bt2.Error):
+ with self.assertRaises(bt2.
_
Error):
bt2.QueryExecutor().query(MySink, 'obj', 23)
def test_query_raises(self):
bt2.QueryExecutor().query(MySink, 'obj', 23)
def test_query_raises(self):
@@
-229,7
+229,7
@@
class UserComponentClassTestCase(unittest.TestCase):
def _query(cls, query_exec, obj, params, log_level):
raise ValueError
def _query(cls, query_exec, obj, params, log_level):
raise ValueError
- with self.assertRaises(bt2.Error):
+ with self.assertRaises(bt2.
_
Error):
bt2.QueryExecutor().query(MySink, 'obj', 23)
def test_query_wrong_return_type(self):
bt2.QueryExecutor().query(MySink, 'obj', 23)
def test_query_wrong_return_type(self):
@@
-244,7
+244,7
@@
class UserComponentClassTestCase(unittest.TestCase):
def _query(cls, query_exec, obj, params, log_level):
return ...
def _query(cls, query_exec, obj, params, log_level):
return ...
- with self.assertRaises(bt2.Error):
+ with self.assertRaises(bt2.
_
Error):
bt2.QueryExecutor().query(MySink, 'obj', 23)
def test_query_params_none(self):
bt2.QueryExecutor().query(MySink, 'obj', 23)
def test_query_params_none(self):
This page took
0.02372 seconds
and
4
git commands to generate.