Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-celery for openSUSE:Factory checked in at 2026-03-30 18:32:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-celery (Old) and /work/SRC/openSUSE:Factory/.python-celery.new.1999 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-celery" Mon Mar 30 18:32:05 2026 rev:54 rq:1343556 version:5.6.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-celery/python-celery.changes 2026-01-13 21:30:47.378592876 +0100 +++ /work/SRC/openSUSE:Factory/.python-celery.new.1999/python-celery.changes 2026-03-30 18:35:34.357777651 +0200 @@ -1,0 +2,6 @@ +Mon Mar 23 03:19:32 UTC 2026 - Steve Kowalik <[email protected]> + +- Add patch support-pymongo-4.16.patch: + * Support pymongo 4.16+ changes. + +------------------------------------------------------------------- New: ---- support-pymongo-4.16.patch ----------(New B)---------- New: - Add patch support-pymongo-4.16.patch: * Support pymongo 4.16+ changes. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-celery.spec ++++++ --- /var/tmp/diff_new_pack.ARhwrp/_old 2026-03-30 18:35:35.085808088 +0200 +++ /var/tmp/diff_new_pack.ARhwrp/_new 2026-03-30 18:35:35.085808088 +0200 @@ -35,6 +35,8 @@ URL: https://celeryproject.org Source: https://files.pythonhosted.org/packages/source/c/celery/celery-%{version}.tar.gz Patch0: move-pytest-configuration-to-conftest.patch +# PATCH-FIX-UPSTREAM gh#celery/celery#10074 +Patch1: support-pymongo-4.16.patch BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} ++++++ support-pymongo-4.16.patch ++++++ >From c2608f51ca16a5aae587c51ffb1c5ed5fdc694df Mon Sep 17 00:00:00 2001 From: Colin Watson <[email protected]> Date: Tue, 27 Jan 2026 12:18:25 +0000 Subject: [PATCH] Make tests compatible with pymongo >= 4.16 `InvalidDocument` now requires a `message` argument; it was previously optional. --- t/unit/backends/test_mongodb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/unit/backends/test_mongodb.py b/t/unit/backends/test_mongodb.py index 0c29111654b..075ce3d4862 100644 --- a/t/unit/backends/test_mongodb.py +++ b/t/unit/backends/test_mongodb.py @@ -390,7 +390,7 @@ def test_store_result(self, mock_get_database): upsert=True) assert sentinel.result == ret_val - mock_collection.replace_one.side_effect = InvalidDocument() + mock_collection.replace_one.side_effect = InvalidDocument("bad") with pytest.raises(EncodeError): self.backend._store_result( sentinel.task_id, sentinel.result, sentinel.status) @@ -417,7 +417,7 @@ def test_store_result_with_request(self, mock_get_database): assert parameters['parent_id'] == sentinel.parent_id assert sentinel.result == ret_val - mock_collection.replace_one.side_effect = InvalidDocument() + mock_collection.replace_one.side_effect = InvalidDocument("bad") with pytest.raises(EncodeError): self.backend._store_result( sentinel.task_id, sentinel.result, sentinel.status)
