Matej Cepl 2022-08-06 17:34:11 +00:00 committed by Git OBS Bridge
parent 8eb625831f
commit 9adbcf98af

View File

@ -65,7 +65,7 @@ sed -i -e '/rednose/ d' setup.cfg
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/gabrielfalcao/HTTPretty/issues/405
# 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
@ -73,8 +73,6 @@ sed -Ei 's/(test_https?_passthrough)/_\1/' tests/functional/test_passthrough.py
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
# %%python_exec -m nose2 -v
%pytest
%files %{python_files}