Files
RustPython/Lib/test/test_codecmaps_tw.py
Shahar Naveh 221d95cbbe Run windows tests with -u all (#8134)
* Enable all test resources on windows

* Mark tests

* mark wmi test
2026-06-22 16:46:53 +09:00

40 lines
1.2 KiB
Python
Vendored

#
# test_codecmaps_tw.py
# Codec mapping tests for ROC encodings
#
from test import multibytecodec_support
import unittest
class TestBIG5Map(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'big5'
mapfileurl = 'http://www.pythontest.net/unicode/BIG5.TXT'
@unittest.expectedFailure # TODO: RUSTPYTHON; LookupError: unknown encoding: big5
def test_mapping_file(self):
return super().test_mapping_file()
class TestCP950Map(multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'cp950'
mapfileurl = 'http://www.pythontest.net/unicode/CP950.TXT'
pass_enctest = [
(b'\xa2\xcc', '\u5341'),
(b'\xa2\xce', '\u5345'),
]
codectests = (
(b"\xFFxy", "replace", "\ufffdxy"),
)
@unittest.expectedFailureIf(__import__("sys").platform in ("android", "darwin", "linux"), "TODO: RUSTPYTHON; LookupError: unknown encoding: cp950")
def test_errorhandle(self):
return super().test_errorhandle()
@unittest.expectedFailure # TODO: RUSTPYTHON; LookupError: unknown encoding: cp950
def test_mapping_file(self):
return super().test_mapping_file()
if __name__ == "__main__":
unittest.main()