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

fake_filesystem.py incorrectly resolves the path "a/b/../non_existent_folder/../file" #3

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 3 comments
Labels

Comments

@GoogleCodeExporter
Copy link

Given the filesystem
  a
  a/file
  a/b
fake_filesystem resolves "a/b/../non_existent_folder/../file" to file, but is 
should raise OSError

STEPS TO REPRODUCE:
fake_filesystem_vs_real_test.py contains a test case for this 
(testBadRelativePath) which is currently disabled.   Enable it


EXPECTED RESULTS:
 isfile(path) -> False
 exists(path) -> False
 stat(path).st_size -> raise OSError

OBSERVED RESULTS:
 isfile(path) -> True
 exists(path) -> True
 stat(path).st_size -> 8 (size of final file)

Original issue reported on code.google.com by jsill...@gmail.com on 24 Feb 2010 at 11:49

@GoogleCodeExporter
Copy link
Author

Original comment by dba...@google.com on 21 May 2013 at 8:18

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by dba...@google.com on 30 May 2013 at 9:30

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision f5c5a3bd3079.

Original comment by dba...@google.com on 31 May 2013 at 5:14

  • Changed state: Fixed

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

2 participants