From: Neal N. <nno...@us...> - 2003-02-01 21:25:13
|
Update of /cvsroot/pychecker/pychecker/test_input In directory sc8-pr-cvs1:/tmp/cvs-serv28908/test_input Modified Files: test1.py test75.py Log Message: move 2.2+ test into 75, since it handles different versions of python better Index: test1.py =================================================================== RCS file: /cvsroot/pychecker/pychecker/test_input/test1.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** test1.py 24 Dec 2002 16:50:25 -0000 1.5 --- test1.py 1 Feb 2003 21:25:00 -0000 1.6 *************** *** 68,96 **** return renderElement(a, ff=lambda value: '=' + renderItem(b)) - class MethodArgNames: - 'check warnings for static/class methods for first arg name' - def __init__(self, *args): pass - - # should warn - def nn(self, *args): pass - nn = classmethod(nn) - - # should warn - def mm(self, *args): pass - mm = staticmethod(mm) - - # should not warn - def oo(cls, *args): pass - oo = classmethod(oo) - - # should not warn - def pp(*args): pass - pp = staticmethod(pp) - - # should not warn - def qq(): pass - qq = staticmethod(qq) - - # should not warn - def rr(klass, *args): pass - rr = classmethod(rr) --- 68,69 ---- Index: test75.py =================================================================== RCS file: /cvsroot/pychecker/pychecker/test_input/test75.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** test75.py 27 Mar 2002 21:48:01 -0000 1.5 --- test75.py 1 Feb 2003 21:25:00 -0000 1.6 *************** *** 38,41 **** --- 38,69 ---- pass + class MethodArgNames: + 'check warnings for static/class methods for first arg name' + def __init__(self, *args): pass + + # should warn + def nn(self, *args): pass + nn = classmethod(nn) + + # should warn + def mm(self, *args): pass + mm = staticmethod(mm) + + # should not warn + def oo(cls, *args): pass + oo = classmethod(oo) + + # should not warn + def pp(*args): pass + pp = staticmethod(pp) + + # should not warn + def qq(): pass + qq = staticmethod(qq) + + # should not warn + def rr(klass, *args): pass + rr = classmethod(rr) + except NameError: pass |