[snip] > > Also using os.fsync will bypass any data that's still buffered and not > sent out to the underlying API. You probably want a self.file.flush() > in there. > > I'm also surprised this works at all. os.fsync should be expecting an > int, so you'd have to use self.file.fileno(). Perhaps there's some > magic that takes care of it somewhere (e.g. a __int__ override or > something) > The documentation (https://docs.python.org/2/library/os.html#os.fsync) specifically says that, so yes, this should be changed.
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
