MCPcopy Index your code
hub / github.com/python/cpython / test_bug1601501

Method test_bug1601501

Lib/test/test_codecs.py:1114–1116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1112 )
1113
1114 def test_bug1601501(self):
1115 # SF bug #1601501: check that the codec works with a buffer
1116 self.assertEqual(str(b"\xef\xbb\xbf", "utf-8-sig"), "")
1117
1118 def test_bom(self):
1119 d = codecs.getincrementaldecoder("utf-8-sig")()

Callers

nothing calls this directly

Calls 2

strFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected