forked from pool/python-python-prctl
* No changelog. - Rebase all patches. - Add patch check-for-python310-correctly.patch: * Check for Python 3.10 correctly. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-prctl?expand=0&rev=9
14 lines
615 B
Diff
14 lines
615 B
Diff
Index: python-prctl-1.8.1/test_prctl.py
|
|
===================================================================
|
|
--- python-prctl-1.8.1.orig/test_prctl.py
|
|
+++ python-prctl-1.8.1/test_prctl.py
|
|
@@ -245,7 +245,7 @@ class PrctlTest(unittest.TestCase):
|
|
@require('mpx_enable_management')
|
|
def test_mpx(self):
|
|
"""Test MPX enabling/disabling"""
|
|
- if os.uname().release > "5.4":
|
|
+ if tuple(int(x) for x in os.uname().release.split('.')[:2]) > (5, 4):
|
|
self.assertRaises(OSError, prctl.mpx_enable_management)
|
|
self.assertRaises(OSError, prctl.mpx_disable_management)
|
|
else:
|