Python doctest 模块,register_optionflag() 实例源码

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

项目:hostapd-mana    作者:adde88    | 项目源码 | 文件源码
def _get_allow_unicode_flag():
    """
    Registers and returns the ALLOW_UNICODE flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_UNICODE')
项目:hostapd-mana    作者:adde88    | 项目源码 | 文件源码
def _get_allow_bytes_flag():
    """
    Registers and returns the ALLOW_BYTES flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_BYTES')
项目:sslstrip-hsts-openwrt    作者:adde88    | 项目源码 | 文件源码
def _get_allow_unicode_flag():
    """
    Registers and returns the ALLOW_UNICODE flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_UNICODE')
项目:sslstrip-hsts-openwrt    作者:adde88    | 项目源码 | 文件源码
def _get_allow_bytes_flag():
    """
    Registers and returns the ALLOW_BYTES flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_BYTES')
项目:godot-python    作者:touilleMan    | 项目源码 | 文件源码
def _get_allow_unicode_flag():
    """
    Registers and returns the ALLOW_UNICODE flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_UNICODE')
项目:godot-python    作者:touilleMan    | 项目源码 | 文件源码
def _get_allow_bytes_flag():
    """
    Registers and returns the ALLOW_BYTES flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_BYTES')
项目:godot-python    作者:touilleMan    | 项目源码 | 文件源码
def _get_allow_unicode_flag():
    """
    Registers and returns the ALLOW_UNICODE flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_UNICODE')
项目:godot-python    作者:touilleMan    | 项目源码 | 文件源码
def _get_allow_bytes_flag():
    """
    Registers and returns the ALLOW_BYTES flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_BYTES')
项目:GSM-scanner    作者:yosriayed    | 项目源码 | 文件源码
def _get_allow_unicode_flag():
    """
    Registers and returns the ALLOW_UNICODE flag.
    """
    import doctest
    return doctest.register_optionflag('ALLOW_UNICODE')