Issue #2394: implement more of the memoryview API.

This commit is contained in:
Antoine Pitrou 2008-08-19 22:09:34 +00:00
parent 4aeec04624
commit 616d28566b
4 changed files with 418 additions and 25 deletions

View file

@ -621,7 +621,7 @@ class UTF8SigTest(ReadTest):
def test_bug1601501(self):
# SF bug #1601501: check that the codec works with a buffer
str(b"\xef\xbb\xbf", "utf-8-sig")
self.assertEquals(str(b"\xef\xbb\xbf", "utf-8-sig"), "")
def test_bom(self):
d = codecs.getincrementaldecoder("utf-8-sig")()