forked from pool/python-pyOpenSSL
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user