From 42842252518b5a8410ebd9f3c0bfc547b23dc611cbcd18ad88abf2417a12bac8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 19 Aug 2020 08:52:38 +0000 Subject: [PATCH] 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 --- failing-on-i586.patch | 12 ++++++++++++ python-python-prctl.changes | 5 +++++ python-python-prctl.spec | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 failing-on-i586.patch diff --git a/failing-on-i586.patch b/failing-on-i586.patch new file mode 100644 index 0000000..d47447b --- /dev/null +++ b/failing-on-i586.patch @@ -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') diff --git a/python-python-prctl.changes b/python-python-prctl.changes index 44c205c..1922c0e 100644 --- a/python-python-prctl.changes +++ b/python-python-prctl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 19 07:46:50 UTC 2020 - Marketa Calabkova + +- Add failing-on-i586.patch to disable failing i586 test + ------------------------------------------------------------------- Tue Aug 11 07:51:14 UTC 2020 - Tomáš Chvátal diff --git a/python-python-prctl.spec b/python-python-prctl.spec index e31e380..effbff3 100644 --- a/python-python-prctl.spec +++ b/python-python-prctl.spec @@ -26,6 +26,7 @@ URL: https://github.com/seveas/python-prctl Source: https://files.pythonhosted.org/packages/source/p/python-prctl/python-prctl-%{version}.tar.gz Source99: https://raw.githubusercontent.com/seveas/python-prctl/master/COPYING Patch0: disable-sandboxed-test.patch +Patch1: failing-on-i586.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -48,6 +49,7 @@ and allows you to set the process name as seen in ps and top. %prep %setup -q -n python-prctl-%{version} %patch0 -p1 +%patch1 -p1 cp %{SOURCE99} . %build