Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pkgcore/snakeoil:master commit in: src/snakeoil/test/
Date: Tue, 01 Nov 2022 20:23:05
Message-Id: 1667334058.1aa7174e22c900ed829ef9e792bfd970638f729d.arthurzam@gentoo
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):