Commit c636f565 authored by Tim Peters's avatar Tim Peters

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.
parent 5a49ade7
......@@ -1442,6 +1442,10 @@ def inherits():
#XXX verify(str(s) == "12345")
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
def rev(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment