[Python-Dev] I need help with IO testuite (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Wed Nov 17 16:00:20 CET 2010
- Previous message: [Python-Dev] I need help with IO testuite
- Next message: [Python-Dev] Proposed adjustments to PEP 0 generation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] I need help with IO testuite
- Next message: [Python-Dev] Proposed adjustments to PEP 0 generation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]