forked from pool/python-M2Crypto
- add timeout_300hz.patch to accept a small deviation from time
in the testsuite (bsc#1212757) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=118
This commit is contained in:
parent
f205e7dcff
commit
4866370746
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 27 10:51:14 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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 <otto.hollmann@suse.com>
|
||||
|
||||
|
@ -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}
|
||||
|
13
timeout_300hz.patch
Normal file
13
timeout_300hz.patch
Normal file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user