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

Method test_file_utf_8

Lib/test/test_string_literals.py:334–336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 del sys.modules[modname]
333
334 def test_file_utf_8(self):
335 extra = "z = '\u1234'; assert ord(z) == 0x1234\n"
336 self.check_encoding("utf-8", extra)
337
338 def test_file_utf_8_error(self):
339 extra = "b'\x80'\n"

Callers

nothing calls this directly

Calls 1

check_encodingMethod · 0.95

Tested by

no test coverage detected