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

Method test_bug828737

Lib/test/test_codeccallbacks.py:1129–1139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1127 self.assertRaises(TypeError, "\xff".translate, {0xff: ()})
1128
1129 def test_bug828737(self):
1130 charmap = {
1131 ord("&"): "&",
1132 ord("<"): "&lt;",
1133 ord(">"): "&gt;",
1134 ord('"'): "&quot;",
1135 }
1136
1137 for n in (1, 10, 100, 1000):
1138 text = 'abc<def>ghi'*n
1139 text.translate(charmap)
1140
1141 # TODO: RUSTPYTHON
1142 @unittest.expectedFailure

Callers

nothing calls this directly

Calls 2

ordFunction · 0.85
translateMethod · 0.45

Tested by

no test coverage detected