Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FakeFileWrapper didn't implement __next__ #485

Closed
mlouielu opened this issue May 22, 2019 · 1 comment · Fixed by #486
Closed

FakeFileWrapper didn't implement __next__ #485

mlouielu opened this issue May 22, 2019 · 1 comment · Fixed by #486
Labels

Comments

@mlouielu
Copy link
Contributor

Describe the bug

FakeFileWrapper didn't implement __next__

How To Reproduce

  • next(f)

raise:

        with open(input_fn) as f:
>           student_ids = next(f).strip().split(',')
E           TypeError: 'FakeFileWrapper' object is not an iterator

Your enviroment
Please run the following and paste the output.

python -c "import platform; print(platform.platform())"
python -c "import sys; print('Python', sys.version)"
python -c "from pyfakefs.fake_filesystem import __version__; print('pyfakefs', __version__)"
Linux-4.20.0-rc1-x86_64-with-arch
Python 3.7.3 (default, May  3 2019, 11:10:59) 
[GCC 8.2.1 20181127]
pyfakefs 3.6
@mrbean-bremen
Copy link
Member

Thanks - good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants