Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
python-vine
use-correct-test-method.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File use-correct-test-method.patch of Package python-vine
From 8b41bf0052de96672c69a8c297cb24f1dd9c0d69 Mon Sep 17 00:00:00 2001 From: Stanislav Levin <slev@altlinux.org> Date: Tue, 27 Feb 2024 20:09:28 +0300 Subject: [PATCH] tests: Replace deprecated setup method 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)]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor