tests.py 文件源码

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

项目:scratchdir 作者: ahawker 项目源码 文件源码
def test_scratch_file_supports_file_obj_interface(active_scratch_dir, method_name):
    """
    Assert that methods of :class:`~scratchdir.ScratchDir` that are expected to return file-like objects
    do so and these objects implement, atleast, the :class:`~io.IOBase` interface.
    """
    method = getattr(active_scratch_dir, method_name)
    assert is_file_like_obj(method())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号