summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-16 22:53:17 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-17 21:14:30 +0100
commit11424700c42f235fd6bdcc8353f82a9d39960dd0 (patch)
tree877764ce342603686f66810fd1c36c6ebbadfc89
parentcb5d9414913b6a7ade270b965c050c43a223633a (diff)
downloadpylint-git-11424700c42f235fd6bdcc8353f82a9d39960dd0.tar.gz
Rename func_w0233 to non_init_parent_called
-rw-r--r--tests/functional/d/dotted_ancestor.py6
-rw-r--r--tests/functional/n/non_init_parent_called.py (renamed from tests/functional/d/func_w0233.py)12
-rw-r--r--tests/functional/n/non_init_parent_called.txt (renamed from tests/functional/d/func_w0233.txt)4
3 files changed, 11 insertions, 11 deletions
diff --git a/tests/functional/d/dotted_ancestor.py b/tests/functional/d/dotted_ancestor.py
index 3c136591e..89ca2fac9 100644
--- a/tests/functional/d/dotted_ancestor.py
+++ b/tests/functional/d/dotted_ancestor.py
@@ -1,11 +1,11 @@
"""bla"""
# pylint: disable=no-absolute-import
-from . import func_w0233
+from ..n import non_init_parent_called
__revision__ = 'yo'
-class Aaaa(func_w0233.AAAA): # [too-few-public-methods]
+class Aaaa(non_init_parent_called.AAAA): # [too-few-public-methods]
"""test dotted name in ancestors"""
def __init__(self):
- func_w0233.AAAA.__init__(self)
+ non_init_parent_called.AAAA.__init__(self)
diff --git a/tests/functional/d/func_w0233.py b/tests/functional/n/non_init_parent_called.py
index ca0345db3..fd196f666 100644
--- a/tests/functional/d/func_w0233.py
+++ b/tests/functional/n/non_init_parent_called.py
@@ -1,11 +1,11 @@
-# pylint: disable=R0903,W0212,W0406,no-absolute-import,wrong-import-order, useless-object-inheritance
+# pylint: disable=R0903,W0212,W0406,no-absolute-import,wrong-import-order, useless-object-inheritance,line-too-long
"""test for call to __init__ from a non ancestor class
"""
from __future__ import print_function
-from . import func_w0233
+from . import non_init_parent_called
import nonexistant # [import-error]
-__revision__ = '$Id: func_w0233.py,v 1.2 2004-09-29 08:35:13 syt Exp $'
+__revision__ = '$Id: non_init_parent_called.py,v 1.2 2004-09-29 08:35:13 syt Exp $'
class AAAA(object):
"""ancestor 1"""
@@ -20,12 +20,12 @@ class BBBBMixin(object):
def __init__(self):
print('init', self)
-class CCC(BBBBMixin, func_w0233.AAAA, func_w0233.BBBB, nonexistant.AClass): # [no-member]
+class CCC(BBBBMixin, non_init_parent_called.AAAA, non_init_parent_called.BBBB, nonexistant.AClass): # [no-member]
"""mix different things, some inferable some not"""
def __init__(self):
BBBBMixin.__init__(self)
- func_w0233.AAAA.__init__(self)
- func_w0233.BBBB.__init__(self) # [no-member]
+ non_init_parent_called.AAAA.__init__(self)
+ non_init_parent_called.BBBB.__init__(self) # [no-member]
nonexistant.AClass.__init__(self)
class DDDD(AAAA):
diff --git a/tests/functional/d/func_w0233.txt b/tests/functional/n/non_init_parent_called.txt
index a05215ae2..2dc98a361 100644
--- a/tests/functional/d/func_w0233.txt
+++ b/tests/functional/n/non_init_parent_called.txt
@@ -1,6 +1,6 @@
import-error:7:0::Unable to import 'nonexistant'
non-parent-init-called:15:8:AAAA.__init__:__init__ method from a non direct base class 'BBBBMixin' is called
-no-member:23:38:CCC:Module 'functional.d.func_w0233' has no 'BBBB' member:INFERENCE
-no-member:28:8:CCC.__init__:Module 'functional.d.func_w0233' has no 'BBBB' member:INFERENCE
+no-member:23:50:CCC:Module 'functional.n.non_init_parent_called' has no 'BBBB' member:INFERENCE
+no-member:28:8:CCC.__init__:Module 'functional.n.non_init_parent_called' has no 'BBBB' member:INFERENCE
super-init-not-called:49:4:Super2.__init__:__init__ method from base class 'dict' is not called
no-member:51:8:Super2.__init__:Super of 'Super2' has no '__woohoo__' member:INFERENCE