def __init__(self): buildstep.LogLineObserver.__init__(self) TestResult.__init__(self) try: from subunit import TestProtocolServer except ImportError: raise ImportError("subunit is not importable, but is required for " "SubunitLogObserver support.") self.protocol = TestProtocolServer(self, DiscardStream())
def __init__(self): buildstep.LogLineObserver.__init__(self) TestResult.__init__(self) try: from subunit import TestProtocolServer except ImportError: raise ImportError("subunit is not importable, but is required for " "SubunitLogObserver support.") self.warningio = StringIO() self.protocol = TestProtocolServer(self, self.warningio) self.skips = [] self.seen_tags = set() #don't yet know what tags does in subunit
def __init__(self): super().__init__() try: from subunit import TestProtocolServer, PROGRESS_CUR, PROGRESS_SET from subunit import PROGRESS_PUSH, PROGRESS_POP except ImportError as e: raise ImportError("subunit is not importable, but is required for " "SubunitLogObserver support.") from e self.PROGRESS_CUR = PROGRESS_CUR self.PROGRESS_SET = PROGRESS_SET self.PROGRESS_PUSH = PROGRESS_PUSH self.PROGRESS_POP = PROGRESS_POP self.warningio = io.BytesIO() self.protocol = TestProtocolServer(self, self.warningio) self.skips = [] self.seen_tags = set() # don't yet know what tags does in subunit
def __init__(self): logobserver.LogLineObserver.__init__(self) TestResult.__init__(self) try: from subunit import TestProtocolServer, PROGRESS_CUR, PROGRESS_SET from subunit import PROGRESS_PUSH, PROGRESS_POP except ImportError: raise ImportError("subunit is not importable, but is required for " "SubunitLogObserver support.") self.PROGRESS_CUR = PROGRESS_CUR self.PROGRESS_SET = PROGRESS_SET self.PROGRESS_PUSH = PROGRESS_PUSH self.PROGRESS_POP = PROGRESS_POP self.warningio = NativeStringIO() self.protocol = TestProtocolServer(self, self.warningio) self.skips = [] self.seen_tags = set() # don't yet know what tags does in subunit