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

Method test_mbcs_code_page

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

Source from the content-addressed store, hash-verified

3533 self.assertEqual(decoded, ('abc', 3))
3534
3535 def test_mbcs_code_page(self):
3536 # Check that codec for the current Windows (ANSII) code page is
3537 # always available.
3538 try:
3539 from _winapi import GetACP
3540 except ImportError:
3541 self.skipTest('requires _winapi.GetACP')
3542 cp = GetACP()
3543 codecs.lookup(f'cp{cp}')
3544
3545 @support.bigmemtest(size=2**31, memuse=7, dry_run=False)
3546 def test_large_input(self, size):

Callers

nothing calls this directly

Calls 2

skipTestMethod · 0.80
lookupMethod · 0.45

Tested by

no test coverage detected