File: io.py

package info (click to toggle)
python-pyfakefs 5.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,476 kB
  • sloc: python: 20,153; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 341 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
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()