Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python:backports
python-python-prctl
correct-uname-comparsion.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File correct-uname-comparsion.patch of Package python-python-prctl
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:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor