diff --git a/python-M2Crypto.changes b/python-M2Crypto.changes index 84e4556..19413b5 100644 --- a/python-M2Crypto.changes +++ b/python-M2Crypto.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 27 10:51:14 UTC 2023 - Dirk Müller + +- add timeout_300hz.patch to accept a small deviation from time + in the testsuite (bsc#1212757) + ------------------------------------------------------------------- Thu Mar 16 10:35:33 UTC 2023 - Otto Hollmann diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index 0ee6c54..20f279f 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -37,6 +37,7 @@ Patch1: openssl-stop-parsing-header.patch Patch2: https://src.fedoraproject.org/rpms/m2crypto/raw/d7be0dd83ee5a414544d99dcc62cde4ad5998f0c/f/m2crypto-0.38-ossl3-tests.patch # PATCH-FIX-UPSTREAM https://gitlab.com/m2crypto/m2crypto/-/merge_requests/284 Patch3: openssl-adapt-tests-for-3.1.0.patch +Patch4: timeout_300hz.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module parameterized} BuildRequires: %{python_module pytest} diff --git a/timeout_300hz.patch b/timeout_300hz.patch new file mode 100644 index 0000000..40f2eec --- /dev/null +++ b/timeout_300hz.patch @@ -0,0 +1,13 @@ +Index: M2Crypto-0.38.0/tests/test_ssl.py +=================================================================== +--- M2Crypto-0.38.0.orig/tests/test_ssl.py ++++ M2Crypto-0.38.0/tests/test_ssl.py +@@ -391,7 +391,7 @@ class MiscSSLClientTestCase(BaseSSLClien + self.assertEqual(r.sec, DEFAULT_TIMEOUT, r.sec) + self.assertEqual(r.microsec, 0, r.microsec) + self.assertEqual(w.sec, test_timeout_sec, w.sec) +- self.assertEqual(w.microsec, test_timeout_microsec, w.microsec) ++ self.assertTrue(abs(w.microsec - test_timeout_microsec) < 4000, w.microsec) + + s.connect(self.srv_addr) + data = self.http_get(s)