-
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
getsize difference #412
Comments
On reflection, no, this is probably not related to the tell issue, despite the append. It's a truncate problem, I'd bet. |
no symlinks, no weird extra slashes, no rename. just a nice, simple, basic POSIX thing. |
I don't think so either, I will check later. I had a go at the tell problem earlier, and it looks tough. I may actually revert a fix for another more obscure bug to fix this one - I may have another look at the weekend. |
This and tell seem more important than symlinks + weird extra slashes, to me. I will probably remove extra slashes and add back in symlinks when I get a chance. Running a bunch of new tests, since I have a cool new test generation heuristic I want to test out, anyway (count times every call has appeared in testing, and if I can call a seldom-called operation, make that highly probable, vs. the normal pure random selection) |
Yes, I'm already tired of the exta slashes :P |
Symlinks included but extra slashes lost seems ok-ish. 2116 tests so far with no failures. So maybe we are mostly down to multi-slash nonsense as problems (I'm ignoring renames for now) |
Ok, that sounds not so bad. |
Many hours of testing seems to just show this issue, when extra slashes and rename aren't in the mix. You can detect it with readline, readlines, getsize, or st.size, but they all look like the same fancy footwork with truncate. |
I tested only with getsize() - hopefully the other ones will also be fixed... |
Variant still fails:
|
Reopen according to last comment. |
Looks clean. |
May be related to the tell bug?
OS gives 1, pyfakefs gives 2.
The text was updated successfully, but these errors were encountered: