python类expectedFailure()的实例源码

base.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def expectedFailurePY26(func):
    if not PY26:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def expectedFailurePY27(func):
    if not PY27:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def expectedFailurePY2(func):
    if not PY2:
        return func
    return unittest.expectedFailure(func)


# Renamed in Py3.3:
support.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def anticipate_failure(condition):
    """Decorator to mark a test that is known to be broken in some cases

       Any use of this decorator should have a comment identifying the
       associated tracker issue.
    """
    if condition:
        return unittest.expectedFailure
    return lambda f: f
base.py 文件源码 项目:UMOG 作者: hsab 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def expectedFailurePY3(func):
    if not PY3:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:UMOG 作者: hsab 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def expectedFailurePY26(func):
    if not PY26:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:UMOG 作者: hsab 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def expectedFailurePY27(func):
    if not PY27:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:UMOG 作者: hsab 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def expectedFailurePY2(func):
    if not PY2:
        return func
    return unittest.expectedFailure(func)


# Renamed in Py3.3:
support.py 文件源码 项目:UMOG 作者: hsab 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def anticipate_failure(condition):
    """Decorator to mark a test that is known to be broken in some cases

       Any use of this decorator should have a comment identifying the
       associated tracker issue.
    """
    if condition:
        return unittest.expectedFailure
    return lambda f: f
base.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def expectedFailurePY3(func):
    if not PY3:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def expectedFailurePY26(func):
    if not PY26:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def expectedFailurePY27(func):
    if not PY27:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def expectedFailurePY2(func):
    if not PY2:
        return func
    return unittest.expectedFailure(func)


# Renamed in Py3.3:
support.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def anticipate_failure(condition):
    """Decorator to mark a test that is known to be broken in some cases

       Any use of this decorator should have a comment identifying the
       associated tracker issue.
    """
    if condition:
        return unittest.expectedFailure
    return lambda f: f
base.py 文件源码 项目:beepboop 作者: nicolehe 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def expectedFailurePY3(func):
    if not PY3:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:beepboop 作者: nicolehe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def expectedFailurePY26(func):
    if not PY26:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:beepboop 作者: nicolehe 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def expectedFailurePY27(func):
    if not PY27:
        return func
    return unittest.expectedFailure(func)
base.py 文件源码 项目:beepboop 作者: nicolehe 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def expectedFailurePY2(func):
    if not PY2:
        return func
    return unittest.expectedFailure(func)


# Renamed in Py3.3:
support.py 文件源码 项目:beepboop 作者: nicolehe 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def anticipate_failure(condition):
    """Decorator to mark a test that is known to be broken in some cases

       Any use of this decorator should have a comment identifying the
       associated tracker issue.
    """
    if condition:
        return unittest.expectedFailure
    return lambda f: f
base.py 文件源码 项目:hackathon 作者: vertica 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def expectedFailurePY3(func):
    if not PY3:
        return func
    return unittest.expectedFailure(func)


问题


面经


文章

微信
公众号

扫码关注公众号