Accepting request 1141318 from devel:languages:python

- Disable broken tests with openssl 3.2, bsc#1217782

OBS-URL: https://build.opensuse.org/request/show/1141318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-M2Crypto?expand=0&rev=51
This commit is contained in:
Ana Guerrero 2024-01-29 21:25:51 +00:00 committed by Git OBS Bridge
commit bd50587401
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 24 17:00:29 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Disable broken tests with openssl 3.2, bsc#1217782
-------------------------------------------------------------------
Wed Jan 3 09:51:38 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -32,6 +32,7 @@ Source99: python-M2Crypto.keyring
Patch0: 32bit_ASN1_Time.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing}
BuildRequires: %{python_module wheel}
@ -94,7 +95,9 @@ export CFLAGS="%{optflags}"
%check
%python_expand ls -l %{buildroot}%{$python_sitearch}/M2Crypto/*.so*
export PYTEST_ADDOPTS="--import-mode=append"
%pyunittest_arch discover -v tests
# Ignore test_verify_with_static_callback that fails with openssl 3.2
donttest="test_verify_with_static_callback"
%pytest_arch -k "not ($donttest)" tests
%files %{python_files}
%doc CHANGES LICENCE README.rst