Skip to content

Commit 54cb340

Browse files
authored
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 12953ff)
1 parent d019c79 commit 54cb340

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_posix.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ def test_makedev(self):
478478
self.assertRaises(TypeError, posix.minor)
479479
self.assertRaises((ValueError, OverflowError), posix.minor, -1)
480480

481+
if sys.platform.startswith('freebsd') and dev >= 0x1_0000_0000:
482+
self.skipTest("bpo-31044: on FreeBSD CURRENT, minor() truncates "
483+
"64-bit dev to 32-bit")
484+
481485
self.assertEqual(posix.makedev(major, minor), dev)
482486
self.assertRaises(TypeError, posix.makedev, float(major), minor)
483487
self.assertRaises(TypeError, posix.makedev, major, float(minor))

0 commit comments

Comments
 (0)