We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def setUp(self): self.setUpPyfakefs() # Fix for python 3+; except 3.2 #io.open = open def test_willRedirectIoOpen(self): os.makedirs('install') file = os.path.join('install', 'sample.txt') with io.open(file, 'w'): pass self.assertTrue(os.path.exists(file))
this causes the following error: IOError: [Errno 2] No such file or directory: 'install\sample.txt'
Monkey patching io.open to open after setting up the fake file system seems to fix the problem for all python versions with the exception of 3.2
The text was updated successfully, but these errors were encountered:
Added fake io.open
ffab504
- redirects to FakeFileOpen - fixes pytest-dev#70 and pytest-dev#103
50a1969
Successfully merging a pull request may close this issue.
this causes the following error: IOError: [Errno 2] No such file or directory: 'install\sample.txt'
Monkey patching io.open to open after setting up the fake file system seems to fix the problem for all python versions with the exception of 3.2
The text was updated successfully, but these errors were encountered: