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

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


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

Modified Files:
	test_descr.py 
Log Message:
Added another test of str() applied to a string subclass instance,
involving embedded null bytes, since it's possible to screw that up w/o
screwing up cases w/o embedded nulls.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** test_descr.py	2001/09/11 01:41:59	1.37
--- test_descr.py	2001/09/11 01:52:02	1.38
***************
*** 1443,1446 ****
--- 1443,1450 ----
      verify(str(s).__class__ is str)
  
+     s = madstring("\x00" * 5)
+     #XXX verify(str(s) == "\x00" ( 5)
+     verify(str(s).__class__ is str)
+ 
      class madunicode(unicode):
          _rev = None