commit:     e0bce6f37f4bbee9eb3d77931396ee5aaeafdeea
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 21 03:23:07 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Dec 21 03:24:54 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=e0bce6f3

eclean: Remove unneeded __init__ to enable pytest

Prevented the unit test from running:

pym/gentoolkit/test/eclean/distsupport.py:435: PytestCollectionWarning:
cannot collect test class 'TestDisfiles' because it has a __init__
constructor (from: pym/gentoolkit/test/eclean/test_search.py)

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 pym/gentoolkit/test/eclean/distsupport.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/pym/gentoolkit/test/eclean/distsupport.py 
b/pym/gentoolkit/test/eclean/distsupport.py
index 0fc2db8..da7cdbb 100644
--- a/pym/gentoolkit/test/eclean/distsupport.py
+++ b/pym/gentoolkit/test/eclean/distsupport.py
@@ -434,12 +434,6 @@ class OutputSimulator:
 
 class TestDisfiles:
 
-       def __init__(self):
-               self.workdir = None
-               self.target_file = None
-               self.target_symlink = None
-               self.test_filepaths = None
-
        def setUp(self):
                # create the dist dir
                self.tmpdir = mkdtemp()

Reply via email to