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

Method test_bad_encoding

simplejson/tests/test_speedups.py:94–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 if PY3:
93 @skip_if_speedups_missing
94 def test_bad_encoding(self):
95 with self.assertRaises(UnicodeEncodeError):
96 encoder.JSONEncoder(encoding='\udcff').encode({b('key'): 123})
97
98
99@unittest.skipIf(sys.version_info < (3, 13),

Callers

nothing calls this directly

Calls 2

bFunction · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected