From bedef1c3b9548caef3f932c27abbc1fa284e220ed2062c807431d9fff7dd5801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 9 Aug 2022 07:33:32 +0000 Subject: [PATCH] Accepting request 993696 from home:bnavigator:branches:devel:languages:python - Fix test suite: * Remove nose idioms * Remove outdated test skips OBS-URL: https://build.opensuse.org/request/show/993696 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=50 --- python-httpretty.changes | 7 +++++++ python-httpretty.spec | 16 +++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/python-httpretty.changes b/python-httpretty.changes index 993f4f5..3818671 100644 --- a/python-httpretty.changes +++ b/python-httpretty.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Aug 8 09:17:40 UTC 2022 - Ben Greiner + +- Fix test suite: + * Remove nose idioms + * Remove outdated test skips + ------------------------------------------------------------------- Mon Aug 8 02:53:55 UTC 2022 - Steve Kowalik diff --git a/python-httpretty.spec b/python-httpretty.spec index c5e6eae..c48c758 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -55,10 +55,6 @@ It is similar to Ruby's FakeWeb. %prep %autosetup -p1 -n httpretty-%{version} -# no test coverage check needed -sed -i -e '/cover/ d' setup.cfg -# no color printout for tests -sed -i -e '/rednose/ d' setup.cfg %build %python_build @@ -70,13 +66,11 @@ sed -i -e '/rednose/ d' setup.cfg %check # gh#gabrielfalcao/HTTPretty#405 export EVENTLET_NO_GREENDNS=yes -# test_http_passthrough and test_https_passthrough need internet connection -sed -Ei 's/(test_https?_passthrough)/_\1/' tests/functional/test_passthrough.py -# fails on 15.1 -sed -Ei 's/(test_streaming_responses)/_\1/' tests/functional/test_requests.py -# fails on x86_64 -sed -Ei 's/(test_fakesock_socket_sendall_with_body_data_with_chunked_entry)/_\1/' tests/unit/test_core.py -%pytest +# 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" +%pytest -k "not (${donttest})" %files %{python_files} %license COPYING