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:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 11 13:21:19 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- According to gh#pyca/pyopenssl#684 tests must run with TZ=UTC, also
|
||||||
|
skip test_verify_with_time on %ix86.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 9 16:41:15 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>
|
Wed Dec 9 16:41:15 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
@@ -69,13 +69,12 @@ other things) a cffi-based interface to OpenSSL.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LC_ALL=en_US.UTF-8
|
SKIPPED_TESTS="network"
|
||||||
# test_verify_with_time does not fit in 32 bits
|
|
||||||
%if %{__isa_bits} == 32
|
%if %{__isa_bits} == 32
|
||||||
%pytest -m 'not network' -k 'not test_verify_with_time'
|
SKIPPED_TESTS="$SKIPPED_TESTS or test_verify_with_time"
|
||||||
%else
|
|
||||||
%pytest -m 'not network'
|
|
||||||
%endif
|
%endif
|
||||||
|
export LC_ALL=en_US.UTF-8
|
||||||
|
%pytest -k "not ($SKIPPED_TESTS)"
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
Index: pyOpenSSL-20.0.0/tests/test_ssl.py
|
--- a/tests/test_ssl.py
|
||||||
===================================================================
|
+++ b/tests/test_ssl.py
|
||||||
--- pyOpenSSL-20.0.0.orig/tests/test_ssl.py
|
|
||||||
+++ pyOpenSSL-20.0.0/tests/test_ssl.py
|
|
||||||
@@ -1240,6 +1240,7 @@ class TestContext(object):
|
@@ -1240,6 +1240,7 @@ class TestContext(object):
|
||||||
reason="set_default_verify_paths appears not to work on Windows. "
|
reason="set_default_verify_paths appears not to work on Windows. "
|
||||||
"See LP#404343 and LP#404344.",
|
"See LP#404343 and LP#404344.",
|
||||||
@@ -10,3 +8,19 @@ Index: pyOpenSSL-20.0.0/tests/test_ssl.py
|
|||||||
def test_set_default_verify_paths(self):
|
def test_set_default_verify_paths(self):
|
||||||
"""
|
"""
|
||||||
`Context.set_default_verify_paths` causes the platform-specific CA
|
`Context.set_default_verify_paths` causes the platform-specific CA
|
||||||
|
--- a/setup.cfg
|
||||||
|
+++ b/setup.cfg
|
||||||
|
@@ -2,6 +2,8 @@
|
||||||
|
minversion = 3.0.1
|
||||||
|
strict = true
|
||||||
|
testpaths = tests
|
||||||
|
+markers =
|
||||||
|
+ network: test case requires network connection
|
||||||
|
|
||||||
|
[bdist_wheel]
|
||||||
|
universal = 1
|
||||||
|
@@ -19,4 +21,3 @@ doc-files = doc/_build/html
|
||||||
|
[egg_info]
|
||||||
|
tag_build =
|
||||||
|
tag_date = 0
|
||||||
|
-
|
||||||
|
Reference in New Issue
Block a user