mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
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 12953ffe12
)
This commit is contained in:
parent
d019c7965d
commit
54cb3400e5
1 changed files with 4 additions and 0 deletions
|
@ -478,6 +478,10 @@ class PosixTester(unittest.TestCase):
|
||||||
self.assertRaises(TypeError, posix.minor)
|
self.assertRaises(TypeError, posix.minor)
|
||||||
self.assertRaises((ValueError, OverflowError), posix.minor, -1)
|
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.assertEqual(posix.makedev(major, minor), dev)
|
||||||
self.assertRaises(TypeError, posix.makedev, float(major), minor)
|
self.assertRaises(TypeError, posix.makedev, float(major), minor)
|
||||||
self.assertRaises(TypeError, posix.makedev, major, float(minor))
|
self.assertRaises(TypeError, posix.makedev, major, float(minor))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue