We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
f.closed returns False after f.close() has been called.
f.closed
False
f.close()
With pyfakefs
f = open("/tmp/r.txt", "wb") f.write(content) f.close() print("closed={}".format(f.closed)) # returns False
On real file system
> python Python 3.6.5 (default, Apr 14 2018, 13:17:30) [GCC 7.3.1 20180406] on linux Type "help", "copyright", "credits" or "license" for more information. >>> f = open("/tmp/r.txt", "w") >>> f.write("hello") 5 >>> f.close() >>> f.closed True
The text was updated successfully, but these errors were encountered:
Thanks for the report - will have a look at it in the evening!
Sorry, something went wrong.
Added "closed" property to file wrapper
cc3b150
- see pytest-dev#380
0548a36
- see #380
Should be fixed in master now - please check!
Confirmed the fix. Thanks a lot!
No branches or pull requests
f.closed
returnsFalse
afterf.close()
has been called.With pyfakefs
On real file system
The text was updated successfully, but these errors were encountered: