Dirk Mueller 2022-10-04 20:32:08 +00:00 committed by Git OBS Bridge
parent c28993dc44
commit e18a8b27d4
3 changed files with 18 additions and 9 deletions

View File

@ -1,11 +1,11 @@
Index: aiohttp-3.8.1/setup.cfg
Index: aiohttp-3.8.3/setup.cfg
===================================================================
--- aiohttp-3.8.1.orig/setup.cfg
+++ aiohttp-3.8.1/setup.cfg
@@ -119,6 +119,7 @@ filterwarnings =
ignore:Exception ignored in. <function ClientSession.__del__ at 0x.:pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception
ignore:Exception ignored in. <_io.FileIO .closed.>:pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception
ignore:The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.:DeprecationWarning:asyncio
--- aiohttp-3.8.3.orig/setup.cfg
+++ aiohttp-3.8.3/setup.cfg
@@ -125,6 +125,7 @@ filterwarnings =
ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning::
ignore:module 'sre_constants' is deprecated:DeprecationWarning:pkg_resources._vendor.pyparsing
ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.:DeprecationWarning:certifi.core
+ ignore:Passing None has been deprecated:pytest.PytestDeprecationWarning
junit_suite_name = aiohttp_test_suite
norecursedirs = dist docs build .tox .eggs

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 4 20:31:56 UTC 2022 - Dirk Müller <dmueller@suse.com>
- skip more tests
-------------------------------------------------------------------
Sat Sep 24 11:07:58 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -125,15 +125,19 @@ rm -r %{buildroot}%{$python_sitearch}/aiohttp/.hash
}
%check
donttest="test_aiohttp_request_coroutine or test_mark_formdata_as_processed or test_aiohttp_plugin_async"
donttest="test_aiohttp_request_coroutine or test_mark_formdata_as_processed or test_aiohttp_plugin_async or test_secure_https_proxy_absolute_path"
# no name resolution
donttest+=" or test_client_session_timeout_zero or test_requote_redirect_url_default"
# flaky
donttest+=" or test_https_proxy_unsupported_tls_in_tls"
# not running under pytest ?!
donttest+=" or test_no_warnings"
%if 0%{?python3_version_nodots} == 36
donttest+=" or test_read_boundary_with_incomplete_chunk"
%endif
%pytest_arch --ignore ./aiohttp -rsEf -k "not ($donttest)"
# skip functional tests
# rm -v tests/test_proxy_functional.py
%pytest_arch tests -rsEf -k "not ($donttest)"
%files %{python_files}
%license LICENSE.txt