diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2010-04-05 03:05:24 (GMT) |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2010-04-05 03:05:24 (GMT) |
commit | 66a1bd556860851c795df851b6f1f014b6306586 (patch) | |
tree | 5ec972571390b1f3c08d52e19ecfcbad3f4e0e34 /Lib/test/test_codecs.py | |
parent | cfe0af4c0712e6493048cec37abad35522f70413 (diff) | |
download | cpython-66a1bd556860851c795df851b6f1f014b6306586.zip cpython-66a1bd556860851c795df851b6f1f014b6306586.tar.gz cpython-66a1bd556860851c795df851b6f1f014b6306586.tar.bz2 |
Merged revisions 79779 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79779 | philip.jenvey | 2010-04-04 19:51:51 -0700 (Sun, 04 Apr 2010) | 2 lines
fix escape_encode to return the correct consumed size
........
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 974ebd4..d2799c3 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -905,6 +905,8 @@ class UnicodeInternalTest(unittest.TestCase): self.assertEquals(encoder("a")[1], 1) self.assertEquals(encoder("\xe9\u0142")[1], 2) + self.assertEquals(codecs.escape_encode(br'\x00')[1], 4) + # From http://www.gnu.org/software/libidn/draft-josefsson-idn-test-vectors.html nameprep_tests = [ # 3.1 Map to nothing. |