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

Method check_io_encoding

Lib/test/test_utf8_mode.py:190–194  ·  view source on GitHub ↗
(self, module)

Source from the content-addressed store, hash-verified

188 self.assertEqual(out.lower(), f'{encoding}/{errors}')
189
190 def check_io_encoding(self, module):
191 self._check_io_encoding(module, encoding="latin1")
192 self._check_io_encoding(module, errors="namereplace")
193 self._check_io_encoding(module,
194 encoding="latin1", errors="namereplace")
195
196 def test_io_encoding(self):
197 self.check_io_encoding('io')

Callers 2

test_io_encodingMethod · 0.95
test_pyio_encodingMethod · 0.95

Calls 1

_check_io_encodingMethod · 0.95

Tested by

no test coverage detected