From 1aa7174e22c900ed829ef9e792bfd970638f729d Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Tue, 1 Nov 2022 22:20:58 +0200 Subject: snakeoil.test.eq_hash_inheritance: fix pytest warning Usage of `setup` function is deprecated by pytest (was added as compatibility layer for nose). Fix the warning by using correct name - `setup_method`. Signed-off-by: Arthur Zamarin --- src/snakeoil/test/eq_hash_inheritance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snakeoil/test/eq_hash_inheritance.py b/src/snakeoil/test/eq_hash_inheritance.py index 96cedb5..9eb62e4 100644 --- a/src/snakeoil/test/eq_hash_inheritance.py +++ b/src/snakeoil/test/eq_hash_inheritance.py @@ -7,7 +7,7 @@ class Test(mixins.TargetedNamespaceWalker, mixins.KlassWalker): singleton = object() - def setup(self): + def setup_method(self): self._ignore_set = frozenset(self.iter_builtin_targets()) def _should_ignore(self, cls): -- cgit v1.2.3-65-gdbad