1 |
commit: 1aa7174e22c900ed829ef9e792bfd970638f729d |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 1 20:20:58 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 1 20:20:58 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=1aa7174e |
7 |
|
8 |
snakeoil.test.eq_hash_inheritance: fix pytest warning |
9 |
|
10 |
Usage of `setup` function is deprecated by pytest (was added as |
11 |
compatibility layer for nose). Fix the warning by using correct name - |
12 |
`setup_method`. |
13 |
|
14 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
15 |
|
16 |
src/snakeoil/test/eq_hash_inheritance.py | 2 +- |
17 |
1 file changed, 1 insertion(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/src/snakeoil/test/eq_hash_inheritance.py b/src/snakeoil/test/eq_hash_inheritance.py |
20 |
index 96cedb53..9eb62e4c 100644 |
21 |
--- a/src/snakeoil/test/eq_hash_inheritance.py |
22 |
+++ b/src/snakeoil/test/eq_hash_inheritance.py |
23 |
@@ -7,7 +7,7 @@ class Test(mixins.TargetedNamespaceWalker, mixins.KlassWalker): |
24 |
|
25 |
singleton = object() |
26 |
|
27 |
- def setup(self): |
28 |
+ def setup_method(self): |
29 |
self._ignore_set = frozenset(self.iter_builtin_targets()) |
30 |
|
31 |
def _should_ignore(self, cls): |