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

Creating files in read-only directory is possible #203

Closed
mrbean-bremen opened this issue Jun 11, 2017 · 0 comments · Fixed by #208
Closed

Creating files in read-only directory is possible #203

mrbean-bremen opened this issue Jun 11, 2017 · 0 comments · Fixed by #208
Assignees
Labels

Comments

@mrbean-bremen
Copy link
Member

mrbean-bremen commented Jun 11, 2017

In Unix OSes, trying to create a file in a read-only directory should throw an IOError (permission error), but it does not. Note that under Windows this shall not be the case.

@mrbean-bremen mrbean-bremen self-assigned this Jun 13, 2017
mrbean-bremen added a commit to mrbean-bremen/pyfakefs that referenced this issue Jun 13, 2017
…x only)

- fixed assertRaisesIOError and assertRaisesOSError
- never allow adding of already existing file or directory
- fixes pytest-dev#203
mrbean-bremen added a commit to mrbean-bremen/pyfakefs that referenced this issue Jun 14, 2017
…x only)

- fixed assertRaisesIOError and assertRaisesOSError
- never allow adding of already existing file or directory
- fixes pytest-dev#203
mrbean-bremen added a commit that referenced this issue Jun 16, 2017
- raise exception if trying to create file in read-only directory under Posix OS
- fixed assertRaisesIOError and assertRaisesOSError
- never allow adding of already existing file or directory
- do not allow FakeFile without filesystem
- fixes #203
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.

1 participant