mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Skip the test only if neccesary - Kernel bug in freebsd9 - #10142: Support for SEEK_HOLE/SEEK_DATA
This commit is contained in:
parent
9d874866f7
commit
60c13ddd9b
1 changed files with 2 additions and 2 deletions
|
|
@ -1010,11 +1010,11 @@ class PosixTester(unittest.TestCase):
|
||||||
posix.RTLD_GLOBAL
|
posix.RTLD_GLOBAL
|
||||||
posix.RTLD_LOCAL
|
posix.RTLD_LOCAL
|
||||||
|
|
||||||
|
@unittest.skipUnless(hasattr(os, 'SEEK_HOLE'),
|
||||||
|
"test needs an OS that reports file holes")
|
||||||
@unittest.skipIf(sys.platform == 'freebsd9',
|
@unittest.skipIf(sys.platform == 'freebsd9',
|
||||||
"Skip test because known kernel bug - " \
|
"Skip test because known kernel bug - " \
|
||||||
"http://lists.freebsd.org/pipermail/freebsd-amd64/2012-January/014332.html")
|
"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) :
|
def test_fs_holes(self) :
|
||||||
# Even if the filesystem doesn't report holes,
|
# Even if the filesystem doesn't report holes,
|
||||||
# if the OS supports it the SEEK_* constants
|
# if the OS supports it the SEEK_* constants
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue