15
0

- Disable broken tests with openssl 3.2, bsc#1217782

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=128
This commit is contained in:
2024-01-24 17:05:31 +00:00
committed by Git OBS Bridge
parent 0353b13501
commit 2487c2f82b
2 changed files with 9 additions and 1 deletions

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