pyfakefs: AttributeError: 'FakePipeWrapper' object has no attribute 'readable'
Describe the bug I have a set of tests using fake fs and vcr cassetess. When I try to run it, I have the following error:
if c2pread != -1:
self.stdout = io.open(c2pread, 'rb', bufsize)
if self.text_mode:
> self.stdout = io.TextIOWrapper(self.stdout,
encoding=encoding, errors=errors)
E AttributeError: 'FakePipeWrapper' object has no attribute 'readable'
subprocess.py:850: AttributeError
This error appeared when I tried to run tests in a bit newer environment:
Python 3.8.12
-----------------------
pyfakefs 4.5.3
pytest 6.2.5
pytest-asyncio 0.16.0
pytest-mock 3.6.1
pytest-recording 0.12.0
It works within the following (older) environment:
Python 3.8.2
-----------------------
pyfakefs 4.3.0
pytest 6.1.2
pytest-asyncio 0.14.0
pytest-mock 3.3.1
pytest-recording 0.10.0
How To Reproduce pytest --record-mode=once tests
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (10 by maintainers)
Commits related to this issue
- Add some missing methods to FakePipeWrapper - add readable, writable and seekable - see #650 — committed to pytest-dev/pyfakefs by mrbean-bremen 3 years ago
- Add some missing methods to FakePipeWrapper - add readable, writable and seekable - see #650 — committed to pytest-dev/pyfakefs by deleted user 3 years ago
Ok, done.