diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-09 20:44:38 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-14 19:48:30 +0100 |
commit | c41daa7d229823e18ce6106bef85e071d6910be1 (patch) | |
tree | 0e88c9f2ea4c28415747783be708fcaef6b9fbc4 /tests/input | |
parent | cd50f416aeb1f8b66f152bdbf941b7a149a5939c (diff) | |
download | pylint-git-c41daa7d229823e18ce6106bef85e071d6910be1.tar.gz |
Migrate func_dotted_ancestor.py to new functional tests
Diffstat (limited to 'tests/input')
-rw-r--r-- | tests/input/func_dotted_ancestor.py | 11 | ||||
-rw-r--r-- | tests/input/func_w0233.py | 51 |
2 files changed, 0 insertions, 62 deletions
diff --git a/tests/input/func_dotted_ancestor.py b/tests/input/func_dotted_ancestor.py deleted file mode 100644 index ff3285803..000000000 --- a/tests/input/func_dotted_ancestor.py +++ /dev/null @@ -1,11 +0,0 @@ -"""bla""" -# pylint: disable=no-absolute-import - -from input import func_w0233 - -__revision__ = 'yo' - -class Aaaa(func_w0233.AAAA): - """test dotted name in ancestors""" - def __init__(self): - func_w0233.AAAA.__init__(self) diff --git a/tests/input/func_w0233.py b/tests/input/func_w0233.py deleted file mode 100644 index feb30c567..000000000 --- a/tests/input/func_w0233.py +++ /dev/null @@ -1,51 +0,0 @@ -# pylint: disable=R0903,W0212,W0406,no-absolute-import,wrong-import-order, useless-object-inheritance - -"""test for call to __init__ from a non ancestor class -""" -from __future__ import print_function -from . import func_w0233 -import nonexistant -__revision__ = '$Id: func_w0233.py,v 1.2 2004-09-29 08:35:13 syt Exp $' - -class AAAA(object): - """ancestor 1""" - - def __init__(self): - print('init', self) - BBBBMixin.__init__(self) - -class BBBBMixin(object): - """ancestor 2""" - - def __init__(self): - print('init', self) - -class CCC(BBBBMixin, func_w0233.AAAA, func_w0233.BBBB, nonexistant.AClass): - """mix different things, some inferable some not""" - def __init__(self): - BBBBMixin.__init__(self) - func_w0233.AAAA.__init__(self) - func_w0233.BBBB.__init__(self) - nonexistant.AClass.__init__(self) - -class DDDD(AAAA): - """call superclass constructor in disjunct branches""" - def __init__(self, value): - if value: - AAAA.__init__(self) - else: - AAAA.__init__(self) - -class Super(dict): - """ test late binding super() call """ - def __init__(self): - base = super() - base.__init__() - -class Super2(dict): - """ Using the same idiom as Super, but without calling - the __init__ method. - """ - def __init__(self): - base = super() - base.__woohoo__() |