Skip to content

Commit cf9b397

Browse files
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: #104 Signed-off-by: Stanislav Levin <[email protected]>
1 parent 50995d6 commit cf9b397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/unit/test_synchronization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class test_barrier:
1010

11-
def setup(self):
11+
def setup_method(self):
1212
self.m1, self.m2, self.m3 = Mock(), Mock(), Mock()
1313
self.ps = [promise(self.m1), promise(self.m2), promise(self.m3)]
1414

0 commit comments

Comments
 (0)