[Python-Dev] I need help with IO testuite

Nick Coghlan ncoghlan at gmail.com
Wed Nov 17 16:00:20 CET 2010


On Thu, Nov 18, 2010 at 12:58 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> For what Amaury is talking about, what you can test is that the higher
> layers of the IO stack (e.g. BufferedReader) correctly pass the new
> flags down to the RawIO layer. You're correct that you can't really
> test that RawIO is actually passing the flags down to the OS. However,
> if you have a way to check whether the filesystem in use is ZFS, you
> may be able to create a conditionally executed test, such that correct
> behaviour can be verified just by running on a machine that uses ZFS
> for its temp directory.

On further thought, the test should probably be unconditional - just
allow a ValueError as an acceptable result that indicates the
underlying filesystem isn't ZFS.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list