15
0
forked from pool/python-celery

- Add patch from git to fix build with new pytest:

* pytest5.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery?expand=0&rev=122
This commit is contained in:
Tomáš Chvátal
2019-07-31 09:55:32 +00:00
committed by Git OBS Bridge
parent 46b85eaeb1
commit d5deacc1c9
3 changed files with 29 additions and 0 deletions

22
pytest5.patch Normal file
View File

@@ -0,0 +1,22 @@
From 6514fed13ef2f992b2846116f9b2d1237aac8298 Mon Sep 17 00:00:00 2001
From: Omer Katz <omer.drow@gmail.com>
Date: Mon, 20 May 2019 13:02:34 +0300
Subject: [PATCH] Fix pytest deprecation warning.
---
t/unit/tasks/test_result.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/unit/tasks/test_result.py b/t/unit/tasks/test_result.py
index 0fe173ed2f..fed76c8fed 100644
--- a/t/unit/tasks/test_result.py
+++ b/t/unit/tasks/test_result.py
@@ -759,7 +759,7 @@ def test_restore_current_app_fallback(self):
ts = self.app.GroupResult(uuid(), subs)
ts.save()
with pytest.raises(RuntimeError,
- message="Test depends on current_app"):
+ match="Test depends on current_app"):
GroupResult.restore(ts.id)
def test_join_native(self):

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 31 09:55:16 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch from git to fix build with new pytest:
* pytest5.patch
-------------------------------------------------------------------
Wed Jul 24 11:12:29 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -34,6 +34,7 @@ License: BSD-3-Clause
Group: Development/Languages/Python
URL: http://celeryproject.org
Source: https://files.pythonhosted.org/packages/source/c/celery/celery-%{version}.tar.gz
Patch0: pytest5.patch
Patch2: unpin-pytest.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes