[issue2122] mmap.flush does not check for errors on windows

Ralf Schmitt report at bugs.python.org
Wed Apr 16 18:26:19 CEST 2008


Ralf Schmitt <schmir at gmail.com> added the comment:

I thought about this too, but I don't know of a way to provoke an error.
(Other than passing in illegal values, but the code tries to catch
those. And btw, raises an Exception on windows :)

One could currently pass in a negative value for size (this isn't caught
in the checks). e.g.

m.flush(500, -500) gives an 'error: [Errno 22] Invalid argument' on linux.

but then you don't want to rely on another bug for testing purposes.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2122>
__________________________________


More information about the Python-bugs-list mailing list