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

lstat current directory fails on Linux #516

Closed
sagi-z opened this issue Feb 13, 2020 · 0 comments
Closed

lstat current directory fails on Linux #516

sagi-z opened this issue Feb 13, 2020 · 0 comments
Labels

Comments

@sagi-z
Copy link

sagi-z commented Feb 13, 2020

Describe the bug
lstat for '.' fails on Linux

How To Reproduce

from pyfakefs import fake_filesystem
filesystem = fake_filesystem.FakeFilesystem()
os_module = fake_filesystem.FakeOsModule(filesystem)
os_module.getcwd()  # '/'
os_module.stat('.')  # works ok
os_module.lstat('.')
FileNotFoundError: [Errno 2] No such file or directory in the fake filesystem: '.'

Your enviroment
Please run the following and paste the output.

python -c "import platform; print(platform.platform())"
python -c "import sys; print('Python', sys.version)"
python -c "from pyfakefs.fake_filesystem import __version__; print('pyfakefs', __version__)"

Linux-4.15.0-76-generic-x86_64-with-debian-buster-sid
Python 3.7.3 (default, Nov 21 2019, 15:51:40)
[GCC 7.4.0]
pyfakefs 3.7.1

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