[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.82,1.83
Tim Peters
tim_one@users.sourceforge.net
2001年10月03日 22:48:15 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv5375/python/Lib/test
Modified Files:
test_descr.py
Log Message:
class_docstrings(): The new-style class tests should use new-style
classes (sheesh!).
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** test_descr.py 2001年10月04日 05:27:00 1.82
--- test_descr.py 2001年10月04日 05:48:13 1.83
***************
*** 99,103 ****
verify(Classic2.__doc__ is None)
! class NewStatic:
"Another docstring."
__dynamic__ = 0
--- 99,103 ----
verify(Classic2.__doc__ is None)
! class NewStatic(object):
"Another docstring."
__dynamic__ = 0
***************
*** 105,114 ****
verify(NewStatic.__dict__['__doc__'] == "Another docstring.")
! class NewStatic2:
__dynamic__ = 0
pass
verify(NewStatic2.__doc__ is None)
! class NewDynamic:
"Another docstring."
__dynamic__ = 1
--- 105,114 ----
verify(NewStatic.__dict__['__doc__'] == "Another docstring.")
! class NewStatic2(object):
__dynamic__ = 0
pass
verify(NewStatic2.__doc__ is None)
! class NewDynamic(object):
"Another docstring."
__dynamic__ = 1
***************
*** 116,120 ****
verify(NewDynamic.__dict__['__doc__'] == "Another docstring.")
! class NewDynamic2:
__dynamic__ = 1
pass
--- 116,120 ----
verify(NewDynamic.__dict__['__doc__'] == "Another docstring.")
! class NewDynamic2(object):
__dynamic__ = 1
pass