

def testArraySyntaxError(self):
    stream = StringIO('[[0,1][0,1]]')
    reader = pulljson.JSONPullParser(stream)
    with self.assertRaises(pulljson.JSONParseError) as cm:
        reader.readArray()
    self.assertEqual(cm.exception.code, pulljson.JSON_SYNTAX_ERROR, reader.exception.msg)

dataset/ETHPy150Open Teradata/PyTd/test/test_pulljson.py TestJSONPullParser.testArraySyntaxError/VarMisuse@61/89 `cm`->`reader`