

def testArrayMissingValue(self):
    stream = StringIO('[1, ,2}')
    reader = pulljson.JSONPullParser(stream)
    event = cm.nextEvent()
    self.assertEqual(event.type, pulljson.START_ARRAY)
    event = reader.nextEvent()
    self.assertEqual(event.type, pulljson.ARRAY_VALUE)
    with self.assertRaises(pulljson.JSONParseError) as cm:
        event = reader.nextEvent()
    self.assertEqual(cm.exception.code, pulljson.JSON_SYNTAX_ERROR, cm.exception.msg)

dataset/ETHPy150Open Teradata/PyTd/test/test_pulljson.py TestJSONPullParser.testArrayMissingValue/VarMisuse@28/42 `reader`->`cm`