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

Class FakeUnicodeError

Lib/test/test_codeccallbacks.py:1262–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260 ]
1261 for cls in UnicodeEncodeError, UnicodeDecodeError, UnicodeTranslateError:
1262 class FakeUnicodeError(str):
1263 __class__ = cls
1264 for handler in handlers:
1265 with self.subTest(handler=handler, error_class=cls):
1266 self.assertRaises(TypeError, handler, FakeUnicodeError())

Callers 1

test_fake_error_classMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_fake_error_classMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…