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

Tim Peters tim_one@users.sourceforge.net
Mon, 10 Sep 2001 20:07:40 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv855/python/Lib/test

Modified Files:
	test_descr.py 
Log Message:
Possibly the end of SF [#460020] bug or feature: unicode() and subclasses.
Changed unicode(i) to return a true Unicode object when i is an instance of
a unicode subclass.  Added PyUnicode_CheckExact macro.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** test_descr.py	2001/09/11 01:52:02	1.38
--- test_descr.py	2001/09/11 03:07:38	1.39
***************
*** 1444,1448 ****
  
      s = madstring("\x00" * 5)
!     #XXX verify(str(s) == "\x00" ( 5)
      verify(str(s).__class__ is str)
  
--- 1444,1448 ----
  
      s = madstring("\x00" * 5)
!     #XXX verify(str(s) == "\x00" * 5)
      verify(str(s).__class__ is str)
  
***************
*** 1461,1465 ****
      u = madunicode(u"12345")
      verify(unicode(u) == u"12345")
!     #XXX verify(unicode(u).__class__ is unicode)
  
  def all():
--- 1461,1465 ----
      u = madunicode(u"12345")
      verify(unicode(u) == u"12345")
!     verify(unicode(u).__class__ is unicode)
  
  def all():