On Thu, Nov 18, 2010 at 12:58 AM, Nick Coghlan <ncogh...@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   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to