forked from pool/python-python-prctl
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-prctl?expand=0&rev=14
This commit is contained in:
13
correct-uname-comparsion.patch
Normal file
13
correct-uname-comparsion.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
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:
|
Reference in New Issue
Block a user