diff options
author | Jesus Cea <jcea@jcea.es> | 2012-06-23 00:58:14 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-06-23 00:58:14 (GMT) |
commit | 60c13ddd9b03cb28f454e37ddb1214d4ae4f5e82 (patch) | |
tree | 06d8ec9718dcd87b5a7b2b3e117142c1be31ef76 /Lib/test/test_posix.py | |
parent | 9d874866f72523e31eae85f1a070feeaaf440294 (diff) | |
download | cpython-60c13ddd9b03cb28f454e37ddb1214d4ae4f5e82.zip cpython-60c13ddd9b03cb28f454e37ddb1214d4ae4f5e82.tar.gz cpython-60c13ddd9b03cb28f454e37ddb1214d4ae4f5e82.tar.bz2 |
Skip the test only if neccesary - Kernel bug in freebsd9 - #10142: Support for SEEK_HOLE/SEEK_DATA
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r-- | Lib/test/test_posix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 7c1dd7c..0b2d07d 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -1010,11 +1010,11 @@ class PosixTester(unittest.TestCase): posix.RTLD_GLOBAL posix.RTLD_LOCAL + @unittest.skipUnless(hasattr(os, 'SEEK_HOLE'), + "test needs an OS that reports file holes") @unittest.skipIf(sys.platform == 'freebsd9', "Skip test because known kernel bug - " \ "http://lists.freebsd.org/pipermail/freebsd-amd64/2012-January/014332.html") - @unittest.skipUnless(hasattr(os, 'SEEK_HOLE'), - "test needs an OS that reports file holes") def test_fs_holes(self) : # Even if the filesystem doesn't report holes, # if the OS supports it the SEEK_* constants |