diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-06 00:30:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-06 00:30:33 +0100 |
commit | 9323524b4d44f4ec3dc923bd8e9ea04bdde8a067 (patch) | |
tree | 8ca7b8c58d4e70389d5d4672ebd86cb475cf9f80 /dev-python/vine/files/vine-5.1.0-pytest-8.patch | |
parent | 8c11cf748cc296d6338a189106a8cc9e3a1e0948 (diff) |
gentoo auto-resync : 06:04:2024 - 00:30:33
Diffstat (limited to 'dev-python/vine/files/vine-5.1.0-pytest-8.patch')
-rw-r--r-- | dev-python/vine/files/vine-5.1.0-pytest-8.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-python/vine/files/vine-5.1.0-pytest-8.patch b/dev-python/vine/files/vine-5.1.0-pytest-8.patch new file mode 100644 index 000000000000..f9cf0863b062 --- /dev/null +++ b/dev-python/vine/files/vine-5.1.0-pytest-8.patch @@ -0,0 +1,29 @@ +From cf9b3979173ff22a4a410c4da6cfdad878eced8c Mon Sep 17 00:00:00 2001 +From: Stanislav Levin <slev@altlinux.org> +Date: Tue, 27 Feb 2024 23:53:38 +0300 +Subject: [PATCH] tests: Replace deprecated setup method (#105) + +Nose's `setup` method is deprecated since Pytest 7.2. + +See https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose for details. + +Fixes: https://github.com/celery/vine/issues/104 + +Signed-off-by: Stanislav Levin <slev@altlinux.org> +--- + t/unit/test_synchronization.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/t/unit/test_synchronization.py b/t/unit/test_synchronization.py +index 87335b6..47b7a10 100644 +--- a/t/unit/test_synchronization.py ++++ b/t/unit/test_synchronization.py +@@ -8,7 +8,7 @@ + + class test_barrier: + +- def setup(self): ++ def setup_method(self): + self.m1, self.m2, self.m3 = Mock(), Mock(), Mock() + self.ps = [promise(self.m1), promise(self.m2), promise(self.m3)] + |