python类evaluate_marker()的实例源码

ptr.py 文件源码 项目:pytest-runner 作者: pytest-dev 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def marker_passes(marker):
        """
        Given an environment marker, return True if the marker is valid
        and matches this environment.
        """
        return (
            not marker
            or not pkg_resources.invalid_marker(marker)
            and pkg_resources.evaluate_marker(marker)
        )
test_markers.py 文件源码 项目:pkg_resources 作者: pypa 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def test_ordering(python_version_mock):
    assert evaluate_marker("python_full_version > '2.7.3'") is True
test_markers.py 文件源码 项目:setuptools 作者: pypa 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def test_ordering(python_version_mock):
    assert evaluate_marker("python_full_version > '2.7.3'") is True
test_markers.py 文件源码 项目:browser_vuln_check 作者: lcatro 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def test_ordering(python_version_mock):
    assert evaluate_marker("python_full_version > '2.7.3'") is True


问题


面经


文章

微信
公众号

扫码关注公众号