예제 #1
0
 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())
예제 #2
0
 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
예제 #3
0
파일: subunit.py 프로젝트: zmadi1/buildbot
 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
예제 #4
0
 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