From 76dc3362cb52fb2a755a14137e3f26b650ab34ecf941ef6145c86177cd7bcc7d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 28 Mar 2022 15:10:57 +0000 Subject: [PATCH] Accepting request 965357 from home:bnavigator:branches:devel:languages:python - Add ignore-pytest-deprecationwarning.patch * gh#aio-libs/aiohttp#6663 OBS-URL: https://build.opensuse.org/request/show/965357 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=74 --- ignore-pytest-deprecationwarning.patch | 12 ++++++++++++ python-aiohttp.changes | 6 ++++++ python-aiohttp.spec | 11 ++++++----- 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 ignore-pytest-deprecationwarning.patch diff --git a/ignore-pytest-deprecationwarning.patch b/ignore-pytest-deprecationwarning.patch new file mode 100644 index 0000000..49a0b0f --- /dev/null +++ b/ignore-pytest-deprecationwarning.patch @@ -0,0 +1,12 @@ +Index: aiohttp-3.8.1/setup.cfg +=================================================================== +--- aiohttp-3.8.1.orig/setup.cfg ++++ aiohttp-3.8.1/setup.cfg +@@ -119,6 +119,7 @@ filterwarnings = + ignore:Exception ignored in. :pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception + ignore:The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.:DeprecationWarning:asyncio ++ ignore:Passing None has been deprecated:pytest.PytestDeprecationWarning + junit_suite_name = aiohttp_test_suite + norecursedirs = dist docs build .tox .eggs + minversion = 3.8.2 diff --git a/python-aiohttp.changes b/python-aiohttp.changes index 4d060b0..43c7f81 100644 --- a/python-aiohttp.changes +++ b/python-aiohttp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Mar 27 19:01:09 UTC 2022 - Ben Greiner + +- Add ignore-pytest-deprecationwarning.patch + * gh#aio-libs/aiohttp#6663 + ------------------------------------------------------------------- Sat Dec 11 19:18:47 UTC 2021 - Ben Greiner diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 48141cc..4ff3718 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -1,7 +1,7 @@ # # spec file for package python-aiohttp # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,8 @@ Summary: Asynchronous HTTP client/server framework License: Apache-2.0 URL: https://github.com/aio-libs/aiohttp Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz +# PATCH-FIX-OPENSUSE ignore-pytest-deprecationwarning.patch -- gh#aio-libs/aiohttp#6663 +Patch0: ignore-pytest-deprecationwarning.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module aiosignal >= 1.1.2} BuildRequires: %{python_module async_timeout >= 4.0} @@ -74,7 +76,7 @@ BuildRequires: %{python_module trustme} # /SECTION # SECTION docs %if %{with docs} -BuildRequires: %{python_module MarkupSafe} +BuildRequires: python3-MarkupSafe BuildRequires: python3-Pygments >= 2.1 BuildRequires: python3-Sphinx BuildRequires: python3-aiohttp-theme @@ -124,15 +126,14 @@ rm -r %{buildroot}%{$python_sitearch}/aiohttp/.hash %check donttest="test_aiohttp_request_coroutine or test_mark_formdata_as_processed or test_aiohttp_plugin_async" -python36_donttest=" or test_read_boundary_with_incomplete_chunk" # 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" %if 0%{?python3_version_nodots} == 36 -donttest+="$python36_donttest" +donttest+=" or test_read_boundary_with_incomplete_chunk" %endif -%pytest_arch --ignore ./aiohttp -rsEf -k "not ($donttest ${$python_donttest})" +%pytest_arch --ignore ./aiohttp -rsEf -k "not ($donttest)" %files %{python_files} %license LICENSE.txt