summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch
blob: 85767e1e898814afe91a25b33876d1c635e81353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Disable part of test_posix.test_makedev that depends on the NODEV
macro being defined (missing on musl).

Upstream-Status: Submitted [https://github.com/python/cpython/pull/31794]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -757,7 +757,7 @@ class PosixTester(unittest.TestCase):
             self.assertRaises((ValueError, OverflowError), posix.makedev, x, minor)
             self.assertRaises((ValueError, OverflowError), posix.makedev, major, x)
 
-        if sys.platform == 'linux':
+        if False:
             NODEV = -1
             self.assertEqual(posix.major(NODEV), NODEV)
             self.assertEqual(posix.minor(NODEV), NODEV)