Accepting request 1045422 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1045422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aiohttp?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2022-12-28 09:54:22 +00:00 committed by Git OBS Bridge
commit e2f98f7c5e
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 26 21:35:01 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Don't assume python3 to be present for d:l:p:backports/15.4_py39
- Requires pytest 6.2.0 when pytest.TempPathFactory was introduced.
-------------------------------------------------------------------
Mon Dec 12 16:16:31 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -75,7 +75,7 @@ BuildRequires: %{python_module pluggy}
BuildRequires: %{python_module proxy.py}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest >= 6.2.0}
BuildRequires: %{python_module re-assert}
BuildRequires: %{python_module trustme}
# /SECTION
@ -137,12 +137,13 @@ donttest+=" or test_client_session_timeout_zero or test_requote_redirect_url_def
donttest+=" or test_https_proxy_unsupported_tls_in_tls"
# not running under pytest ?!
donttest+=" or test_no_warnings"
%if 0%{?python3_version_nodots} == 36
donttest+=" or test_read_boundary_with_incomplete_chunk"
%endif
# skip functional tests
# rm -v tests/test_proxy_functional.py
%pytest_arch tests -rsEf -k "not ($donttest)"
%{python_expand # Does not work on python <= 3.6
if [ %{$python_version_nodots} -eq 36 ]; then
#See https://github.com/openSUSE/python-rpm-macros#flavor-expansion for an explanation of this hack
$python_donttest=" or test_read_boundary_with_incomplete_chunk"
fi
}
%pytest_arch tests -rsEf -k "not ($donttest ${$python_donttest})"
%files %{python_files}
%license LICENSE.txt