test_clipboard.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:blender 作者: gastrodia 项目源码 文件源码
def test_clipboard_get():
    # Smoketest for clipboard access - we can't easily guarantee that the
    # clipboard is accessible and has something on it, but this tries to
    # exercise the relevant code anyway.
    try:
        a = get_ipython().hooks.clipboard_get()
    except ClipboardEmpty:
        # Nothing in clipboard to get
        pass
    except TryNext:
        # No clipboard access API available
        pass
    else:
        nt.assert_is_instance(a, unicode_type)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号