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

Tim Peters tim_one@users.sourceforge.net
Mon, 10 Sep 2001 18:42:01 -0700


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

Modified Files:
	test_descr.py 
Log Message:
More on SF bug [#460020] bug or feature: unicode() and subclasses.
Repaired str(i) to return a genuine string when i is an instance of a str
subclass.  New PyString_CheckExact() macro.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** test_descr.py	2001/09/10 23:37:46	1.36
--- test_descr.py	2001/09/11 01:41:59	1.37
***************
*** 1441,1445 ****
      s = madstring("12345")
      #XXX verify(str(s) == "12345")
!     #XXX verify(str(s).__class__ is str)
  
      class madunicode(unicode):
--- 1441,1445 ----
      s = madstring("12345")
      #XXX verify(str(s) == "12345")
!     verify(str(s).__class__ is str)
  
      class madunicode(unicode):