summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2018-05-26 20:30:46 (GMT)
committerGitHub <noreply@github.com>2018-05-26 20:30:46 (GMT)
commit09c4a7dee2eb39b515e5f499f184257cdbe9cb42 (patch)
tree93442fd537b6e26f575843c3663aae48da399935 /Lib/test
parent09f3221fbbf72692308149054e4f7668b08b22eb (diff)
downloadcpython-09c4a7dee2eb39b515e5f499f184257cdbe9cb42.zip
cpython-09c4a7dee2eb39b515e5f499f184257cdbe9cb42.tar.gz
cpython-09c4a7dee2eb39b515e5f499f184257cdbe9cb42.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_posix.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index ecf3e93..e54484c 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -343,7 +343,12 @@ class PosixTester(unittest.TestCase):
except OSError as inst:
# issue10812, ZFS doesn't appear to support posix_fallocate,
# 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
finally:
os.close(fd)