15
0
forked from pool/python-celery
Files
python-celery/pytest5.patch

23 lines
844 B
Diff

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):