- skip failing testsuite tests after requests update

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=56
This commit is contained in:
Dirk Mueller 2023-05-16 07:35:48 +00:00 committed by Git OBS Bridge
parent e1ece73915
commit 28d84d4020
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 16 07:35:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
- skip failing testsuite tests after requests update
-------------------------------------------------------------------
Thu Mar 30 04:21:14 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -45,6 +45,7 @@ BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sure}
BuildRequires: %{python_module tornado}
BuildRequires: %{python_module urllib3 with %python-urllib3 < 2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@ -71,7 +72,7 @@ export EVENTLET_NO_GREENDNS=yes
# needs internet connection to httpbin.org
donttest="test_http_passthrough or test_https_passthrough"
# flaky (too slow) on obs
donttest="$donttest or test_httpretty_should_allow_forcing_headers_urllib2"
donttest="$donttest or test_httpretty_should_allow_forcing_headers_urllib2 or test_httpretty_should_allow_registering_regexes_with_streaming_responses"
%pytest -k "not (${donttest})"
%files %{python_files}