14
0

Accepting request 827738 from home:mcalabkova:branches:devel:languages:python

- Add failing-on-i586.patch to disable failing i586 test

OBS-URL: https://build.opensuse.org/request/show/827738
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-prctl?expand=0&rev=3
This commit is contained in:
2020-08-19 08:52:38 +00:00
committed by Git OBS Bridge
parent be86a4a673
commit 4284225251
3 changed files with 19 additions and 0 deletions

12
failing-on-i586.patch Normal file
View File

@@ -0,0 +1,12 @@
Index: python-prctl-1.7/test_prctl.py
===================================================================
--- python-prctl-1.7.orig/test_prctl.py
+++ python-prctl-1.7/test_prctl.py
@@ -155,6 +155,7 @@ class PrctlTest(unittest.TestCase):
self.assertEqual(prctl.get_keepcaps(), False)
@require('set_mce_kill')
+ @unittest.skipIf(sys.maxsize <= 2**32, 'fails on 32 bit')
def test_mce_kill(self):
"""Test the MCE_KILL setting"""
fd = open('/proc/sys/vm/memory_failure_early_kill')