Accepting request 1045418 from home:bnavigator:branches:devel:languages:python
- 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. OBS-URL: https://build.opensuse.org/request/show/1045418 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=84
This commit is contained in:
parent
1eb5868174
commit
9a179af81b
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user