MCPcopy Create free account
hub / github.com/simplejson/simplejson / bad_encoder2

Method bad_encoder2

simplejson/tests/test_speedups.py:59–60  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

57 self.assertRaises(TypeError, enc, {'spam': 42}, 4)
58
59 def bad_encoder2(*args):
60 1/0
61 enc = encoder.c_make_encoder(
62 None, lambda obj: str(obj),
63 bad_encoder2, None, ': ', ', ',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected