Skip to content

Commit c2f7fb6

Browse files
authored
[2.7] bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915) (#2918)
* 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. (cherry picked from commit 12953ff) * Fix syntax for Python 2.7
1 parent fd6736d commit c2f7fb6

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
@@ -287,6 +287,10 @@ def test_makedev(self):
287287
self.assertRaises(TypeError, posix.minor)
288288
self.assertRaises((ValueError, OverflowError), posix.minor, -1)
289289

290+
if sys.platform.startswith('freebsd') and dev >= 0x100000000:
291+
self.skipTest("bpo-31044: on FreeBSD CURRENT, minor() truncates "
292+
"64-bit dev to 32-bit")
293+
290294
self.assertEqual(posix.makedev(major, minor), dev)
291295
self.assertEqual(posix.makedev(int(major), int(minor)), dev)
292296
self.assertEqual(posix.makedev(long(major), long(minor)), dev)

0 commit comments

Comments
 (0)