report at bugs
Apr 20, 2012, 10:30 AM
Post #9 of 25
Jesús Cea Avión <jcea [at] jcea> added the comment:
[issue10142] Support for SEEK_HOLE/SEEK_DATA
[In reply to]
Terry, yes, skiping the test in the code will raise an error anyway when doing the real "seek()" OS syscall.
> Is there a reason to say (several times) 'can support' instead of
> just 'support'? Do the OSes in question just optionally support
> rather than always support?
Sometimes depends of the concrete filesystem used, or the concrete OS version.
> The first version added: change 'depend of' to 'depend on'.
Done in my repository. Thanks.
> Could import of io create set of valid_whences for system?
> Then check would be "if whence not in valid_whences:" (or C
This is far from trivial and I don't see the point if OS "seek()" is going to give an error anyway. The only point would to provide a maybe more useful error message.
> In 3.3, unittest has new mock submodule. Perhaps that would help
This is a very thin layer over the OS.
Thanks for the feedback.
Python tracker <report [at] bugs>
Python-bugs-list mailing list