[Python-checkins] python/dist/src/Lib/test test_descr.py,1.168,1.169
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Mon, 09 Dec 2002 14:56:15 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv10366/python/Lib/test
Modified Files:
test_descr.py
Log Message:
SF 548651: Fix the METH_CLASS implementation.
Most of these patches are from Thomas Heller, with long lines folded
by Tim. The change to test_descr.py is from Guido. See the bug report.
Not a bugfix candidate -- METH_CLASS is new in 2.3.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.168
retrieving revision 1.169
diff -C2 -d -r1.168 -r1.169
*** test_descr.py 27 Nov 2002 16:29:26 -0000 1.168
--- test_descr.py 9 Dec 2002 22:56:13 -0000 1.169
***************
*** 1465,1474 ****
d = {'abc': 123}
x, a1, d1 = spam.spamlist.classmeth(*a, **d)
! veris(x, None)
! vereq((spam.spamlist,) + a, a1)
vereq(d, d1)
x, a1, d1 = spam.spamlist().classmeth(*a, **d)
! veris(x, None)
! vereq((spam.spamlist,) + a, a1)
vereq(d, d1)
--- 1465,1474 ----
d = {'abc': 123}
x, a1, d1 = spam.spamlist.classmeth(*a, **d)
! veris(x, spam.spamlist)
! vereq(a, a1)
vereq(d, d1)
x, a1, d1 = spam.spamlist().classmeth(*a, **d)
! veris(x, spam.spamlist)
! vereq(a, a1)
vereq(d, d1)