[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.33,1.34

Tim Peters tim_one@users.sourceforge.net
2001年9月10日 14:28:22 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv1287/python/Lib/test
Modified Files:
	test_descr.py 
Log Message:
More for SF bug [#460020] bug or feature: unicode() and subclasses
Repair float constructor to return a true float when passed a subclass
instance. New PyFloat_CheckExact macro.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** test_descr.py	2001年09月10日 20:52:47	1.33
--- test_descr.py	2001年09月10日 21:28:20	1.34
***************
*** 1373,1377 ****
 a = precfloat(12345)
 #XXX verify(float(a) == 12345.0)
! #XXX verify(float(a).__class__ is float)
 
 class madtuple(tuple):
--- 1373,1377 ----
 a = precfloat(12345)
 #XXX verify(float(a) == 12345.0)
! verify(float(a).__class__ is float)
 
 class madtuple(tuple):

AltStyle によって変換されたページ (->オリジナル) /