Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VPP-1498: test/framework.py: AttributeError
[vpp.git]
/
test
/
framework.py
diff --git
a/test/framework.py
b/test/framework.py
index
06876a1
..
4c536e0
100644
(file)
--- a/
test/framework.py
+++ b/
test/framework.py
@@
-151,6
+151,7
@@
class KeepAliveReporter(object):
def __init__(self):
self.__dict__ = self._shared_state
def __init__(self):
self.__dict__ = self._shared_state
+ self._pipe = None
@property
def pipe(self):
@property
def pipe(self):
@@
-158,7
+159,7
@@
class KeepAliveReporter(object):
@pipe.setter
def pipe(self, pipe):
@pipe.setter
def pipe(self, pipe):
- if
hasattr(self, '_pipe')
:
+ if
self._pipe is not None
:
raise Exception("Internal error - pipe should only be set once.")
self._pipe = pipe
raise Exception("Internal error - pipe should only be set once.")
self._pipe = pipe