Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/test/eclean/
Date: Mon, 28 Dec 2020 17:52:04
Message-Id: 1608521094.e0bce6f37f4bbee9eb3d77931396ee5aaeafdeea.mattst88@gentoo
1 commit: e0bce6f37f4bbee9eb3d77931396ee5aaeafdeea
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 21 03:23:07 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 21 03:24:54 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=e0bce6f3
7
8 eclean: Remove unneeded __init__ to enable pytest
9
10 Prevented the unit test from running:
11
12 pym/gentoolkit/test/eclean/distsupport.py:435: PytestCollectionWarning:
13 cannot collect test class 'TestDisfiles' because it has a __init__
14 constructor (from: pym/gentoolkit/test/eclean/test_search.py)
15
16 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
17
18 pym/gentoolkit/test/eclean/distsupport.py | 6 ------
19 1 file changed, 6 deletions(-)
20
21 diff --git a/pym/gentoolkit/test/eclean/distsupport.py b/pym/gentoolkit/test/eclean/distsupport.py
22 index 0fc2db8..da7cdbb 100644
23 --- a/pym/gentoolkit/test/eclean/distsupport.py
24 +++ b/pym/gentoolkit/test/eclean/distsupport.py
25 @@ -434,12 +434,6 @@ class OutputSimulator:
26
27 class TestDisfiles:
28
29 - def __init__(self):
30 - self.workdir = None
31 - self.target_file = None
32 - self.target_symlink = None
33 - self.test_filepaths = None
34 -
35 def setUp(self):
36 # create the dist dir
37 self.tmpdir = mkdtemp()