commit: 6d0a403ee18ef047fb3e5c2958363120e98a30d1 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Apr 5 16:17:29 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Apr 5 16:17:29 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d0a403e
dev-python/vine: Backport a pytest-8 fix Closes: https://bugs.gentoo.org/928615 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/vine/files/vine-5.1.0-pytest-8.patch | 29 +++++++++++++++++++++++++ dev-python/vine/vine-5.1.0.ebuild | 7 +++++- 2 files changed, 35 insertions(+), 1 deletion(-) 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 <s...@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 <s...@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)] + diff --git a/dev-python/vine/vine-5.1.0.ebuild b/dev-python/vine/vine-5.1.0.ebuild index 0d8990a58004..3d7bd3b8e971 100644 --- a/dev-python/vine/vine-5.1.0.ebuild +++ b/dev-python/vine/vine-5.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,3 +19,8 @@ SLOT="0" KEYWORDS="amd64 arm64 x86" distutils_enable_tests pytest + +PATCHES=( + # https://github.com/celery/vine/pull/105 + "${FILESDIR}/${P}-pytest-8.patch" +)