Accepting request 875489 from home:jayvdb:branches:devel:languages:python

- Skip two tests failing due to updated dependencies
- Simplify test invocation

OBS-URL: https://build.opensuse.org/request/show/875489
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hyper?expand=0&rev=14
This commit is contained in:
Matej Cepl 2021-02-26 21:48:30 +00:00 committed by Git OBS Bridge
parent ab84b1c2b7
commit b3bb1f2f25
3 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/Lukasa/hyper.git</param>
<param name="url">https://github.com/python-hyper/hyper.git</param>
<param name="scm">git</param>
<param name="revision">development</param>
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@.%h</param>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 26 15:46:38 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Skip two tests failing due to updated dependencies
- Simplify test invocation
-------------------------------------------------------------------
Mon May 25 10:59:21 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@ -38,11 +38,9 @@ BuildRequires: %{python_module hyperframe >= 3.2}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pytest >= 3.0}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module rfc3986 >= 1.1.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module virtualenv >= 14.0.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-brotlipy >= 0.7.0
@ -86,7 +84,8 @@ wanted http.client.
%check
# test_HTTPConnection_with_custom_context - TLS 1.3 does not support h2
# test_useful_error_with_no_protocol test_goaway_frame_PROTOCOL_ERROR test_goaway_frame_HTTP_1_1_REQUIRED test_goaway_frame_invalid_error_code - httplib update changed error messages reported
%python_exec setup.py pytest --addopts="test/ -k 'not (rpmfail_getaddrinfo or test_HTTPConnection_with_custom_context or test_useful_error_with_no_protocol or test_goaway_frame_PROTOCOL_ERROR or test_goaway_frame_HTTP_1_1_REQUIRED or test_goaway_frame_invalid_error_code)'"
# test_we_can_read_from_the_socket and test_connection_no_window_update_on_zero_length_data_frame fail due to updated dependencies
%pytest -rs -k 'not (rpmfail_getaddrinfo or test_HTTPConnection_with_custom_context or test_useful_error_with_no_protocol or test_goaway_frame_PROTOCOL_ERROR or test_goaway_frame_HTTP_1_1_REQUIRED or test_goaway_frame_invalid_error_code or test_we_can_read_from_the_socket or test_connection_no_window_update_on_zero_length_data_frame)' test/
%post
%python_install_alternative hyper