diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_codecs.py | 3 |
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. |