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

Remove directory behaves incorrectly under Windows #337

Closed
mrbean-bremen opened this issue Dec 29, 2017 · 0 comments
Closed

Remove directory behaves incorrectly under Windows #337

mrbean-bremen opened this issue Dec 29, 2017 · 0 comments
Labels

Comments

@mrbean-bremen
Copy link
Member

    def test_remove(self):
        self.fs.create_dir('c:\\test')
        os.remove('c:\\test')

gives:
IOError: [Errno 2] No such file or directory in fake filesystem: 'C:\\' in pyfakefs,
but:
WindowsError: [Error 5] Access denied: 'C:\\test'
under Python in Windows (Python 2.7).

@mrbean-bremen mrbean-bremen changed the title Remove directory behaves incorrect under Windows Remove directory behaves incorrectly under Windows Dec 29, 2017
mrbean-bremen added a commit to mrbean-bremen/pyfakefs that referenced this issue Dec 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant