mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
bpo-33655: Also ignore test_posix_fallocate failures on BSD platforms (GH-7134)
The failure may be due to the use oF ZFS, a case we already ignore
for Solaris-based systems where ZFS is frequently used.
(cherry picked from commit 09c4a7dee2
)
Co-authored-by: Ned Deily <nad@python.org>
This commit is contained in:
parent
e60f6e1864
commit
96fb828da3
2 changed files with 8 additions and 1 deletions
|
@ -343,7 +343,12 @@ class PosixTester(unittest.TestCase):
|
||||||
except OSError as inst:
|
except OSError as inst:
|
||||||
# issue10812, ZFS doesn't appear to support posix_fallocate,
|
# issue10812, ZFS doesn't appear to support posix_fallocate,
|
||||||
# so skip Solaris-based since they are likely to have ZFS.
|
# so skip Solaris-based since they are likely to have ZFS.
|
||||||
if inst.errno != errno.EINVAL or not sys.platform.startswith("sunos"):
|
# issue33655: Also ignore EINVAL on *BSD since ZFS is also
|
||||||
|
# often used there.
|
||||||
|
if inst.errno == errno.EINVAL and sys.platform.startswith(
|
||||||
|
('sunos', 'freebsd', 'netbsd', 'openbsd', 'gnukfreebsd')):
|
||||||
|
raise unittest.SkipTest("test may fail on ZFS filesystems")
|
||||||
|
else:
|
||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Ignore test_posix_fallocate failures on BSD platforms that might be due to
|
||||||
|
running on ZFS.
|
Loading…
Add table
Add a link
Reference in a new issue