✏️ 正在编辑: io.py
路径:
/opt/cloudlinux/venv/lib/python3.11/site-packages/pyfakefs/pytest_tests/io.py
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
""" This is a test case for pyfakefs issue #708. It tests the usage of an own module with the same name as a patched filesystem module, the content is taken from the issue. """ class InputStream: def __init__(self, name): self.name = name def read(self): with open(self.name) as f: return f.readline()
💾 保存文件
← 返回文件管理器