projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: prepend `_user` to overridable protected methods
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_error.py
diff --git
a/tests/bindings/python/bt2/test_error.py
b/tests/bindings/python/bt2/test_error.py
index 9ae8b36c08090e51be8cde73893cc84d13ad5df8..ca750aea6cd4acfe80987d836eab1e4c07d1af23 100644
(file)
--- a/
tests/bindings/python/bt2/test_error.py
+++ b/
tests/bindings/python/bt2/test_error.py
@@
-44,10
+44,10
@@
class WorkingSink(bt2._UserSinkComponent):
def __init__(self, params):
self._in = self._add_input_port('in')
def __init__(self, params):
self._in = self._add_input_port('in')
- def _graph_is_configured(self):
+ def _
user_
graph_is_configured(self):
self._iter = self._create_input_port_message_iterator(self._in)
self._iter = self._create_input_port_message_iterator(self._in)
- def _consume(self):
+ def _
user_
consume(self):
next(self._iter)
next(self._iter)
@@
-55,10
+55,10
@@
class SinkWithExceptionChaining(bt2._UserSinkComponent):
def __init__(self, params):
self._in = self._add_input_port('in')
def __init__(self, params):
self._in = self._add_input_port('in')
- def _graph_is_configured(self):
+ def _
user_
graph_is_configured(self):
self._iter = self._create_input_port_message_iterator(self._in)
self._iter = self._create_input_port_message_iterator(self._in)
- def _consume(self):
+ def _
user_
consume(self):
try:
next(self._iter)
except bt2._Error as e:
try:
next(self._iter)
except bt2._Error as e:
@@
-66,14
+66,11
@@
class SinkWithExceptionChaining(bt2._UserSinkComponent):
class SinkWithFailingQuery(bt2._UserSinkComponent):
class SinkWithFailingQuery(bt2._UserSinkComponent):
- def _graph_is_configured(self):
- pass
-
- def _consume(self):
+ def _user_consume(self):
pass
@staticmethod
pass
@staticmethod
- def _query(executor, obj, params, log_level):
+ def _
user_
query(executor, obj, params, log_level):
raise ValueError('Query is failing')
raise ValueError('Query is failing')
This page took
0.028217 seconds
and
4
git commands to generate.