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

Resolving symlinks to absolute paths with drive fail on Windows #341

Closed
mrbean-bremen opened this issue Jan 3, 2018 · 0 comments
Closed
Labels

Comments

@mrbean-bremen
Copy link
Member

If creating a symlink to an absolute path in pyfakefs under Windows (Python 3 only) resolving the path fails.
For example:

    def testSymlink(self):
        self.filesystem.is_windows_fs = True
        self.filesystem.create_file(r'C:\foo\bar')
        self.filesystem.create_symlink(r'C:\foo\link', r'C:\foo\bar')
        self.assertTrue(self.filesystem.exists(r'C:\foo\link'))

fails because the path is resolved to C:\foo\C:\foo\bar instead of C:\foo\bar.

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