MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_bug1601501

Method test_bug1601501

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

Source from the content-addressed store, hash-verified

1111 )
1112
1113 def test_bug1601501(self):
1114 # SF bug #1601501: check that the codec works with a buffer
1115 self.assertEqual(str(b"\xef\xbb\xbf", "utf-8-sig"), "")
1116
1117 def test_bom(self):
1118 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