third_party.pylibs.pylint.src/pylint/test/input/func_w0611.py
ssolanki 5673ffe2d8 adapt existing test cases for useless-object-inheritance.
adapt existing test/input test cases to new check.

add some more positive test case for useless-object-inheritance

msg code was in conflict with existing msg.

adapt existing test cases for new checker.
2018-06-21 11:17:27 +05:30

26 lines
473 B
Python

"""check unused import
"""
# pylint: disable=no-absolute-import, useless-object-inheritance
from __future__ import print_function
import os
import sys
class NonRegr(object):
"""???"""
def __init__(self):
print('initialized')
def sys(self):
"""should not get sys from there..."""
print(self, sys)
def dummy(self, truc):
"""yo"""
return self, truc
def blop(self):
"""yo"""
print(self, 'blip')