X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=4c536e062b09448a5b28bc4b6654494e6023ec0a;hb=c7b03fe8f3fd2753d97ffdf8e7ebd85e2c527085;hp=06876a1799b1c8529f3d82dcd238f49786243c86;hpb=2dd192b76774beb9c7960527fb3f397a2848f679;p=vpp.git diff --git a/test/framework.py b/test/framework.py index 06876a1799b..4c536e062b0 100644 --- a/test/framework.py +++ b/test/framework.py @@ -151,6 +151,7 @@ class KeepAliveReporter(object): def __init__(self): self.__dict__ = self._shared_state + self._pipe = None @property def pipe(self): @@ -158,7 +159,7 @@ class KeepAliveReporter(object): @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