Skip to content

Commit 12953ff

Browse files
authored
bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915)
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.
1 parent d5ed47d commit 12953ff

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
@@ -540,6 +540,10 @@ def test_makedev(self):
540540
self.assertRaises(TypeError, posix.minor)
541541
self.assertRaises((ValueError, OverflowError), posix.minor, -1)
542542

543+
if sys.platform.startswith('freebsd') and dev >= 0x1_0000_0000:
544+
self.skipTest("bpo-31044: on FreeBSD CURRENT, minor() truncates "
545+
"64-bit dev to 32-bit")
546+
543547
self.assertEqual(posix.makedev(major, minor), dev)
544548
self.assertRaises(TypeError, posix.makedev, float(major), minor)
545549
self.assertRaises(TypeError, posix.makedev, major, float(minor))

0 commit comments

Comments
 (0)