summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-07-27 16:42:11 (GMT)
committerGitHub <noreply@github.com>2017-07-27 16:42:11 (GMT)
commit54cb3400e500f99bd57a0273aa7ef84ffd37558e (patch)
treeb625c37eb5be680ef37d5f3a646166d6a340a721
parentd019c7965d411b2132f68ed6bb33e538b4d9eba3 (diff)
downloadcpython-54cb3400e500f99bd57a0273aa7ef84ffd37558e.zip
cpython-54cb3400e500f99bd57a0273aa7ef84ffd37558e.tar.gz
cpython-54cb3400e500f99bd57a0273aa7ef84ffd37558e.tar.bz2
bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915) (#2917)
There is a bug in FreeBSD CURRENT with 64-bit dev_t. Skip the test if dev_t is larger than 32-bit, until the bug is fixed in FreeBSD CURRENT. (cherry picked from commit 12953ffe12ac781332b384c36b25d12216b1db62)
-rw-r--r--Lib/test/test_posix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index a6e2fed..9df3206 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -478,6 +478,10 @@ class PosixTester(unittest.TestCase):
self.assertRaises(TypeError, posix.minor)
self.assertRaises((ValueError, OverflowError), posix.minor, -1)
+ if sys.platform.startswith('freebsd') and dev >= 0x1_0000_0000:
+ self.skipTest("bpo-31044: on FreeBSD CURRENT, minor() truncates "
+ "64-bit dev to 32-bit")
+
self.assertEqual(posix.makedev(major, minor), dev)
self.assertRaises(TypeError, posix.makedev, float(major), minor)
self.assertRaises(TypeError, posix.makedev, major, float(minor))