Python unittest 模块,_TextTestResult() 实例源码

我们从Python开源项目中,提取了以下9个代码示例,用于说明如何使用unittest._TextTestResult()

项目:nojs    作者:chrisdickinson    | 项目源码 | 文件源码
def __init__(self, stream, descriptions, verbosity):
    unittest._TextTestResult.__init__(self, stream, descriptions, verbosity)
    self._fails = set()
项目:nojs    作者:chrisdickinson    | 项目源码 | 文件源码
def _makeResult(self):
    return _TextTestResult(self.stream, self.descriptions, self.verbosity)
项目:chromium-build    作者:discordapp    | 项目源码 | 文件源码
def __init__(self, stream, descriptions, verbosity):
    unittest._TextTestResult.__init__(self, stream, descriptions, verbosity)
    self._fails = set()
项目:chromium-build    作者:discordapp    | 项目源码 | 文件源码
def _makeResult(self):
    return _TextTestResult(self.stream, self.descriptions, self.verbosity)
项目:gn_build    作者:realcome    | 项目源码 | 文件源码
def __init__(self, stream, descriptions, verbosity):
    unittest._TextTestResult.__init__(self, stream, descriptions, verbosity)
    self._fails = set()
项目:gn_build    作者:realcome    | 项目源码 | 文件源码
def _makeResult(self):
    return _TextTestResult(self.stream, self.descriptions, self.verbosity)
项目:ngas    作者:ICRAR    | 项目源码 | 文件源码
def __init__(self,
                 stream = sys.stderr,
                 descriptions = 1,
                 verbosity = 1):
        """
        Constructor method.

        stream:       Stream on which to write the report, e.g. sys.stderr
                      (stream object).

        descriptions: ?

        verbosity:    ?
        """
        unittest._TextTestResult.__init__(self,stream, descriptions, verbosity)
项目:buildroot    作者:flutter    | 项目源码 | 文件源码
def __init__(self, stream, descriptions, verbosity):
    unittest._TextTestResult.__init__(self, stream, descriptions, verbosity)
    self._fails = set()
项目:buildroot    作者:flutter    | 项目源码 | 文件源码
def _makeResult(self):
    return _TextTestResult(self.stream, self.descriptions, self.verbosity)