Gentoo Archives: gentoo-portage-dev

From: Matt Turner <mattst88@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Matt Turner <mattst88@g.o>
Subject: [gentoo-portage-dev] [PATCH gentoolkit 3/3] eclean: Remove unneeded __init__ to enable pytest
Date: Mon, 21 Dec 2020 03:25:38
Message-Id: 20201221032526.306727-3-mattst88@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH gentoolkit 1/3] ekeyword: Rename unit test so that it runs by Matt Turner
1 Prevented the unit test from running:
2
3 pym/gentoolkit/test/eclean/distsupport.py:435: PytestCollectionWarning:
4 cannot collect test class 'TestDisfiles' because it has a __init__
5 constructor (from: pym/gentoolkit/test/eclean/test_search.py)
6
7 Signed-off-by: Matt Turner <mattst88@g.o>
8 ---
9 pym/gentoolkit/test/eclean/distsupport.py | 6 ------
10 1 file changed, 6 deletions(-)
11
12 diff --git a/pym/gentoolkit/test/eclean/distsupport.py b/pym/gentoolkit/test/eclean/distsupport.py
13 index 0fc2db8..da7cdbb 100644
14 --- a/pym/gentoolkit/test/eclean/distsupport.py
15 +++ b/pym/gentoolkit/test/eclean/distsupport.py
16 @@ -434,12 +434,6 @@ class OutputSimulator:
17
18 class TestDisfiles:
19
20 - def __init__(self):
21 - self.workdir = None
22 - self.target_file = None
23 - self.target_symlink = None
24 - self.test_filepaths = None
25 -
26 def setUp(self):
27 # create the dist dir
28 self.tmpdir = mkdtemp()
29 --
30 2.26.2