14
0
forked from pool/python-Scrapy

Accepting request 959304 from home:bnavigator:branches:devel:languages:python

- Update runtime requirements and test deselections

OBS-URL: https://build.opensuse.org/request/show/959304
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Scrapy?expand=0&rev=26
This commit is contained in:
2022-03-06 16:31:19 +00:00
committed by Git OBS Bridge
parent b1973a8506
commit bc00530500
2 changed files with 9 additions and 11 deletions

View File

@@ -69,6 +69,7 @@ Requires: python-pyOpenSSL >= 16.2.0
Requires: python-queuelib >= 1.4.2
Requires: python-service_identity >= 16.0.0
Requires: python-setuptools
Requires: python-tldextract
Requires: python-w3lib >= 1.17.2
Requires: python-zope.interface >= 4.1.3
Requires(post): update-alternatives
@@ -106,20 +107,12 @@ popd
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# tests/test_proxy_connect.py: requires mitmproxy == 0.10.1
# tests/test_downloader_handlers_*.py and test_http2_client_protocol.py: no network
# tests/test_command_check.py: twisted dns resolution of example.com error
# no color in obs chroot console
skiplist="test_pformat"
# correct exception but not recognized due to different format
python310_skiplist=" or test_callback_kwargs"
# no online connection to toscrapy.com
skiplist="$skiplist or CheckCommandTest"
%{pytest \
--ignore tests/test_proxy_connect.py \
--ignore tests/test_command_check.py \
--ignore tests/test_downloader_handlers.py \
--ignore tests/test_downloader_handlers_http2.py \
--ignore tests/test_http2_client_protocol.py \
-k "not (${skiplist} ${$python_skiplist})" \
-k "not (${skiplist})" \
-W ignore::DeprecationWarning \
tests}