summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2010-06-09 17:55:28 +0000
committerPhilip Jenvey <pjenvey@underboss.org>2010-06-09 17:55:28 +0000
commitbc3376f66a680a0a6c003041cfca55cae05fcc61 (patch)
tree38a34d5c95c93e0450b80ad798d73e523fd2f635 /Lib/test
parent96ec48b4146f8cc9cd09cd99bc28bb0657a4ec47 (diff)
downloadcpython-git-bc3376f66a680a0a6c003041cfca55cae05fcc61.tar.gz
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')
-rw-r--r--Lib/test/test_codecs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 52e8dc9492..a46edae8fd 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -829,6 +829,9 @@ class UnicodeInternalTest(unittest.TestCase):
"UnicodeInternalTest")
self.assertEquals((u"ab", 12), ignored)
+ encoder = codecs.getencoder("string-escape")
+ self.assertEquals(encoder(r'\x00')[1], 4)
+
# From http://www.gnu.org/software/libidn/draft-josefsson-idn-test-vectors.html
nameprep_tests = [
# 3.1 Map to nothing.