[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.17,1.18
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 17 Aug 2001 06:58:34 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv30978
Modified Files:
test_descr.py
Log Message:
classic(),metods(): add tests to verify that a bound method without a
class has a correct repr().
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** test_descr.py 2001/08/17 13:40:47 1.17
--- test_descr.py 2001/08/17 13:58:31 1.18
***************
*** 764,767 ****
--- 764,768 ----
foo = C.foo
verify(E().foo == C.foo) # i.e., unbound
+ verify(repr(C.foo.__get__(C())).startswith("<bound method "))
def compattr():
***************
*** 908,911 ****
--- 909,913 ----
foo = C.foo
verify(E().foo == C.foo) # i.e., unbound
+ verify(repr(C.foo.__get__(C(1))).startswith("<bound method "))
def specials():