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

Method test_mbcs_code_page

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

Source from the content-addressed store, hash-verified

3546 self.assertEqual(decoded, ('abc', 3))
3547
3548 def test_mbcs_code_page(self):
3549 # Check that codec for the current Windows (ANSII) code page is
3550 # always available.
3551 try:
3552 from _winapi import GetACP
3553 except ImportError:
3554 self.skipTest('requires _winapi.GetACP')
3555 cp = GetACP()
3556 codecs.lookup(f'cp{cp}')
3557
3558 @support.bigmemtest(size=2**31, memuse=7, dry_run=False)
3559 def test_large_input(self, size):

Callers

nothing calls this directly

Calls 3

GetACPFunction · 0.90
skipTestMethod · 0.80
lookupMethod · 0.45

Tested by

no test coverage detected