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:
committed by
Git OBS Bridge
parent
46b85eaeb1
commit
d5deacc1c9
22
pytest5.patch
Normal file
22
pytest5.patch
Normal 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):
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user