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

Method test_file_utf_8

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

check_encodingMethod · 0.95

Tested by

no test coverage detected