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

Method test_issue3623

simplejson/tests/test_scanstring.py:139–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 self.assertRaises(json.JSONDecodeError, scanstring, '\\u EDD"', 0, None, True)
138
139 def test_issue3623(self):
140 self.assertRaises(ValueError, json.decoder.scanstring, "xxx", 1,
141 "xxx")
142 self.assertRaises(UnicodeDecodeError,
143 json.encoder.encode_basestring_ascii, b("xx\xff"))
144
145 def test_overflow(self):
146 # Python 2.5 does not have maxsize, Python 3 does not have maxint

Callers

nothing calls this directly

Calls 1

bFunction · 0.90

Tested by

no test coverage detected