mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
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 ........
This commit is contained in:
parent
96ec48b414
commit
bc3376f66a
3 changed files with 10 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue