There was an error while loading. Please reload this page.
1 parent 2875d1d commit 051b6e0Copy full SHA for 051b6e0
1 file changed
Lib/test/test_os/test_posix.py
@@ -415,8 +415,10 @@ def test_posix_fallocate(self):
415
if inst.errno == errno.EINVAL and sys.platform.startswith(
416
('sunos', 'freebsd', 'openbsd', 'gnukfreebsd')):
417
raise unittest.SkipTest("test may fail on ZFS filesystems")
418
- elif inst.errno == errno.EOPNOTSUPP and sys.platform.startswith("netbsd"):
419
- raise unittest.SkipTest("test may fail on FFS filesystems")
+ elif inst.errno == errno.EOPNOTSUPP:
+ # ZFS on FreeBSD, FFS on NetBSD, etc.
420
+ raise unittest.SkipTest(
421
+ "the file system does not support posix_fallocate()")
422
else:
423
raise
424
finally:
0 commit comments