diff options
author | 2022-11-01 22:20:58 +0200 | |
---|---|---|
committer | 2022-11-01 22:20:58 +0200 | |
commit | 1aa7174e22c900ed829ef9e792bfd970638f729d (patch) | |
tree | 3f59e9ef127a9731b4ef8f94e7c3811e572acff7 /src | |
parent | compression: tidy up bzip2 docs (diff) | |
download | snakeoil-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.py | 2 |
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): |