Commits

Philip Jenvey  committed b389972

bytes are valid results for encoding error handlers
refs http://bugs.python.org/issue16585

  • Participants
  • Parent commits 8be1ab0
  • Branches py3k

Comments (0)

Files changed (1)

File lib-python/3.2/test/test_multibytecodec_support.py

             return (ret, exc.end)
         codecs.register_error("test.cjktest", myreplace)
 
-        for ret in ([1, 2, 3], [], None, object(), b'string', b''):
+        for ret in ([1, 2, 3], [], None, object()):
             self.assertRaises(TypeError, self.encode, self.unmappedunicode,
                               'test.cjktest')