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