From c0e5823c47e3e4928235626357148301805d7f756599e36da45d2a73895734fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 6 Sep 2024 09:45:01 +0000 Subject: [PATCH] Accepting request 1199036 from home:yeey:OpenWebUI - Add patch test_no_warnings_fix.patch * Ignore UserWarning about importing aiohttp from a second sys.path location under the abuild home directory when running tests under the build service. - Update to 3.10.5: OBS-URL: https://build.opensuse.org/request/show/1199036 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=131 --- python-aiohttp.changes | 10 +++++++++- python-aiohttp.spec | 1 + test_no_warnings_fix.patch | 15 +++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 test_no_warnings_fix.patch diff --git a/python-aiohttp.changes b/python-aiohttp.changes index e814f3d..0dfa51c 100644 --- a/python-aiohttp.changes +++ b/python-aiohttp.changes @@ -1,7 +1,15 @@ +------------------------------------------------------------------- +Wed Sep 4 12:40:42 UTC 2024 - Fergal Mc Carthy + +- Add patch test_no_warnings_fix.patch + * Ignore UserWarning about importing aiohttp from a second sys.path + location under the abuild home directory when running tests under + the build service. + ------------------------------------------------------------------- Tue Aug 20 06:48:08 UTC 2024 - Steve Kowalik -e Update to 3.10.5: +- Update to 3.10.5: * Fixed aiohttp.ClientResponse.json() not setting status when aiohttp.ContentTypeError is raised * Improved performance of the WebSocket reader diff --git a/python-aiohttp.spec b/python-aiohttp.spec index f942d4e..45eba0e 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -25,6 +25,7 @@ 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 +Patch0: test_no_warnings_fix.patch Requires: python-aiohappyeyeballs >= 2.3.0 Requires: python-aiosignal >= 1.1.2 Requires: python-attrs >= 17.3.0 diff --git a/test_no_warnings_fix.patch b/test_no_warnings_fix.patch new file mode 100644 index 0000000..995f0ba --- /dev/null +++ b/test_no_warnings_fix.patch @@ -0,0 +1,15 @@ +diff -rup aiohttp-3.10.5.orig/tests/test_circular_imports.py aiohttp-3.10.5/tests/test_circular_imports.py +--- aiohttp-3.10.5.orig/tests/test_circular_imports.py 2024-08-19 15:18:15.000000000 -0400 ++++ aiohttp-3.10.5/tests/test_circular_imports.py 2024-09-04 08:18:49.702469018 -0400 +@@ -111,6 +111,11 @@ def test_no_warnings(import_path: str) - + # `gunicorn.util`. + "-W", "ignore:pkg_resources is deprecated as an API:" + "DeprecationWarning", ++ # UserWarning about importing aiohttp from a second sys.path ++ # location under the abuild home directory when running tests ++ # under the build service ++ "-W", "ignore:Module aiohttp was already imported from " ++ "/home/abuild/rpmbuild/BUILDROOT", + "-c", f"import {import_path!s}", + # fmt: on + )