|
60 | 60 | pass |
61 | 61 |
|
62 | 62 | #Run the parse error checks |
63 | | -checkParseErrors=False |
| 63 | +checkParseErrors=True |
64 | 64 |
|
65 | 65 | #XXX - There should just be one function here but for some reason the testcase |
66 | 66 | #format differs from the treedump format by a single space character |
@@ -112,8 +112,8 @@ def runParserTest(self, innerHTML, input, expected, errors, treeClass, |
112 | 112 | errorMsg="\n".join(["\n\nInput:",input,"\nExpected:",expected, |
113 | 113 | "\nReceived:",output]) |
114 | 114 | self.assertEquals(expected,output,errorMsg.encode("utf-8")) |
115 | | -errStr= [u"Line: %i Col: %i %s %s"%(line,col, |
116 | | -constants.E[errorcode],datavars)for |
| 115 | +errStr= [u"Line: %i Col: %i %s"%(line,col, |
| 116 | +constants.E[errorcode]%datavarsifisinstance(datavars,dict)else (datavars,))for |
117 | 117 | ((line,col),errorcode,datavars)inp.errors] |
118 | 118 |
|
119 | 119 | errorMsg2=u"\n".join([u"\n\nInput:",input, |
|