]> granicus.if.org Git - python/commitdiff
Skip the test only if neccesary - Kernel bug in freebsd9 - #10142: Support for SEEK_H...
authorJesus Cea <jcea@jcea.es>
Sat, 23 Jun 2012 00:58:14 +0000 (02:58 +0200)
committerJesus Cea <jcea@jcea.es>
Sat, 23 Jun 2012 00:58:14 +0000 (02:58 +0200)
Lib/test/test_posix.py

index 7c1dd7c2086c485a12dc343191e448230ad017c3..0b2d07d69f890775b749f8056f9bbc2c0d40d0f4 100644 (file)
@@ -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