HomeSort by relevance Sort by last modified time
    Searched refs:JSONDecodeError (Results 1 - 7 of 7) sorted by null

  /external/python/cpython3/Lib/test/test_json/
__init__.py 11 # JSONDecodeError is cached inside the _json module
12 cjson.JSONDecodeError = cjson.decoder.JSONDecodeError = json.JSONDecodeError
19 JSONDecodeError = staticmethod(pyjson.JSONDecodeError)
27 JSONDecodeError = staticmethod(cjson.JSONDecodeError)
test_fail.py 89 except self.JSONDecodeError:
126 with self.assertRaises(self.JSONDecodeError) as cm:
162 with self.assertRaises(self.JSONDecodeError) as cm:
185 with self.assertRaises(self.JSONDecodeError) as cm:
204 with self.assertRaises(self.JSONDecodeError) as cm:
test_decode.py 66 self.assertRaisesRegex(self.JSONDecodeError, msg, self.loads, s)
71 self.assertRaisesRegex(self.JSONDecodeError, msg, self.loads, s)
81 with self.assertRaises(self.JSONDecodeError) as cm:
84 with self.assertRaises(self.JSONDecodeError) as cm:
test_scanstring.py 132 with self.assertRaises(self.JSONDecodeError, msg=s):
  /external/python/cpython3/Lib/json/
decoder.py 11 __all__ = ['JSONDecoder', 'JSONDecodeError']
20 class JSONDecodeError(ValueError):
67 raise JSONDecodeError(msg, s, pos)
85 raise JSONDecodeError("Unterminated string starting at", s, begin)
99 raise JSONDecodeError(msg, s, end)
106 raise JSONDecodeError("Unterminated string starting at", s, begin)
113 raise JSONDecodeError(msg, s, end)
162 raise JSONDecodeError(
173 raise JSONDecodeError("Expecting ':' delimiter", s, end)
187 raise JSONDecodeError("Expecting value", s, err.value) from Non
    [all...]
  /external/python/cpython3/Modules/
_json.c 326 /* Use JSONDecodeError exception to raise a nice looking ValueError subclass */
327 static PyObject *JSONDecodeError = NULL;
329 if (JSONDecodeError == NULL) {
333 JSONDecodeError = PyObject_GetAttrString(decoder, "JSONDecodeError");
335 if (JSONDecodeError == NULL)
338 exc = PyObject_CallFunction(JSONDecodeError, "(zOn)", msg, s, end);
340 PyErr_SetObject(JSONDecodeError, exc);
    [all...]
  /external/linux-kselftest/tools/testing/selftests/tc-testing/
tdc.py 189 except json.JSONDecodeError as jde:

Completed in 489 milliseconds