summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch')
-rw-r--r--meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch b/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch
new file mode 100644
index 0000000000..85767e1e89
--- /dev/null
+++ b/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch
@@ -0,0 +1,16 @@
1Disable part of test_posix.test_makedev that depends on the NODEV
2macro being defined (missing on musl).
3
4Upstream-Status: Submitted [https://github.com/python/cpython/pull/31794]
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6--- a/Lib/test/test_posix.py
7+++ b/Lib/test/test_posix.py
8@@ -757,7 +757,7 @@ class PosixTester(unittest.TestCase):
9 self.assertRaises((ValueError, OverflowError), posix.makedev, x, minor)
10 self.assertRaises((ValueError, OverflowError), posix.makedev, major, x)
11
12- if sys.platform == 'linux':
13+ if False:
14 NODEV = -1
15 self.assertEqual(posix.major(NODEV), NODEV)
16 self.assertEqual(posix.minor(NODEV), NODEV)