diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-07-27 16:44:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 16:44:43 (GMT) |
commit | c2f7fb61511456c62877592988b31714cb8ba266 (patch) | |
tree | 77dfdcfbe7f00dcfaf25f1ec07a5876b5d0fc47b /Lib | |
parent | fd6736d17901e539d6a9ddf50a9927a3a97a9c06 (diff) | |
download | cpython-c2f7fb61511456c62877592988b31714cb8ba266.zip cpython-c2f7fb61511456c62877592988b31714cb8ba266.tar.gz cpython-c2f7fb61511456c62877592988b31714cb8ba266.tar.bz2 |
[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 12953ffe12ac781332b384c36b25d12216b1db62)
* Fix syntax for Python 2.7
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_posix.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index f1626b7..bce4e21 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -287,6 +287,10 @@ class PosixTester(unittest.TestCase): self.assertRaises(TypeError, posix.minor) self.assertRaises((ValueError, OverflowError), posix.minor, -1) + if sys.platform.startswith('freebsd') and dev >= 0x100000000: + 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(int(major), int(minor)), dev) self.assertEqual(posix.makedev(long(major), long(minor)), dev) |