Skip to content

Commit

Permalink
tests: Replace deprecated setup method (#105)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
stanislavlevin authored Feb 27, 2024
1 parent 50995d6 commit cf9b397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/unit/test_synchronization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down

0 comments on commit cf9b397

Please sign in to comment.