-
Notifications
You must be signed in to change notification settings - Fork 91
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
No such file or directory in the fake filesystem: b'/tmp' #595
Comments
Thanks for the report! |
I've just updated the test to print the tempdir returned by The result is that it exists before and after the yield:
So I don't understand what's going on here |
The problem comes from exists() which cannot handle a
|
Ah, thank you - that is helpful! Handling of |
- includes exists(), isfile(), islink(), isdir() and ismount() - fixes pytest-dev#595 - comment docker tests (handled in another issue)
- includes exists(), isfile(), islink(), isdir() and ismount() - fixes #595 - comment docker tests (handled in another issue)
@Wenzel - shall be fixed now in master, please check! |
@mrbean-bremen thank you for the quick fix, I confirmed the issue is solved ! |
Thanks - you are welcome! |
Describe the bug
pyfakefs complains that
/tmp
directory does not exists, despite the docs stating that "This means that any newly created fake file system will always have either a directory named /tmp when running on Linux or Unix systems"How To Reproduce
Please have a look at this small repo:
https://github.com/Wenzel/bug_pyfakefs
smply run
python -m pytest -v
to reproduce the bug:Going up in the stacktrace:
We see here that an error is raised because /tmp is not found.
Your environment
Please run the following and paste the output.
Thanks for your help !
The text was updated successfully, but these errors were encountered: