14
0

Accepting request 854961 from home:mcepl:branches:devel:tools:scm

- According to gh#pyca/pyopenssl#684 tests must run with TZ=UTC, also
  skip test_verify_with_time on %ix86.

OBS-URL: https://build.opensuse.org/request/show/854961
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=76
This commit is contained in:
2020-12-11 17:24:47 +00:00
committed by Git OBS Bridge
parent e79218fcd2
commit 2c6e44f6af
3 changed files with 28 additions and 9 deletions

View File

@@ -69,13 +69,12 @@ other things) a cffi-based interface to OpenSSL.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LC_ALL=en_US.UTF-8
# test_verify_with_time does not fit in 32 bits
SKIPPED_TESTS="network"
%if %{__isa_bits} == 32
%pytest -m 'not network' -k 'not test_verify_with_time'
%else
%pytest -m 'not network'
SKIPPED_TESTS="$SKIPPED_TESTS or test_verify_with_time"
%endif
export LC_ALL=en_US.UTF-8
%pytest -k "not ($SKIPPED_TESTS)"
%files %{python_files}
%license LICENSE