diff --git a/testcases/samplestestcase.py b/testcases/samplestestcase.py index 01a78f6c..938b9c13 100644 --- a/testcases/samplestestcase.py +++ b/testcases/samplestestcase.py @@ -106,7 +106,8 @@ def testSampleRegexsFactory(name): self.assertTrue(faildata.get('match', False), "Line matched when shouldn't have: %s:%i %r" % (logFile.filename(), logFile.filelineno(), line)) - self.assertEqual(len(ret), 1, "Multiple regexs matched") + self.assertEqual(len(ret), 1, "Multiple regexs matched - %s:%i %r " % + (logFile.filename(), logFile.filelineno(), ret)) # Verify timestamp and host as expected failregex, host, time = ret[0] self.assertEqual(host, faildata.get("host", None))