aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-11-01 22:20:58 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2022-11-01 22:20:58 +0200
commit1aa7174e22c900ed829ef9e792bfd970638f729d (patch)
tree3f59e9ef127a9731b4ef8f94e7c3811e572acff7 /src
parentcompression: tidy up bzip2 docs (diff)
downloadsnakeoil-1aa7174e22c900ed829ef9e792bfd970638f729d.tar.gz
snakeoil-1aa7174e22c900ed829ef9e792bfd970638f729d.tar.bz2
snakeoil-1aa7174e22c900ed829ef9e792bfd970638f729d.zip
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 <arthurzam@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/snakeoil/test/eq_hash_inheritance.py2
1 files changed, 1 insertions, 1 deletions
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):