Close a file before trying to unlink it, and apparently Cygwin needs
writes to an mmap'ed file to get flushed before they're visible.
Bugfix candidate, but I think only for the 2.2 line (it's testing
features that I think were new in 2.2).
pass
else:
verify(0, "Incompatible parameters should raise ValueError.")
+ f.close()
finally:
try:
os.unlink(TESTFN)
data = 'aabaac\x00deef\x00\x00aa\x00'
n = len(data)
f.write(data)
+ f.flush()
m = mmap.mmap(f.fileno(), n)
f.close()