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

Method test_decoder_state

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

Source from the content-addressed store, hash-verified

2308 self.assertEqual(table_type, table_type)
2309
2310 def test_decoder_state(self):
2311 # Check that getstate() and setstate() handle the state properly
2312 u = "abc123"
2313 for encoding in all_unicode_encodings:
2314 if encoding not in broken_unicode_with_stateful:
2315 self.check_state_handling_decode(encoding, u, u.encode(encoding))
2316 self.check_state_handling_encode(encoding, u, u.encode(encoding))
2317
2318
2319class CharmapTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.45

Tested by

no test coverage detected