diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-11 01:52:02 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-11 01:52:02 (GMT) |
commit | c636f565b4f7c36387c3f6cdc196f797fc04c59f (patch) | |
tree | 759b066981092920094fd5d47b7246005e216107 | |
parent | 5a49ade70e19a76aa252cd596accf79930765f31 (diff) | |
download | cpython-c636f565b4f7c36387c3f6cdc196f797fc04c59f.zip cpython-c636f565b4f7c36387c3f6cdc196f797fc04c59f.tar.gz cpython-c636f565b4f7c36387c3f6cdc196f797fc04c59f.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_descr.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 0de4dec..fea3255 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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): |