Add error information to a failing test to help diagnose a buildbot failure.

This commit is contained in:
Raymond Hettinger 2015-08-16 17:08:48 -07:00
parent ca3788c2e8
commit bb562a9a56
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,10 @@ class TestSymbolGeneration(unittest.TestCase):
self.assertFalse(filecmp.cmp(SYMBOL_FILE, TEST_PY_FILE))
self.assertEqual((0, b''), self._generate_symbols(GRAMMAR_FILE,
TEST_PY_FILE))
self.assertTrue(filecmp.cmp(SYMBOL_FILE, TEST_PY_FILE))
self.assertTrue(filecmp.cmp(SYMBOL_FILE, TEST_PY_FILE),
'symbol stat: %r\ntest_py stat: %r\n' %
(os.stat(SYMBOL_FILE),
os.stat(TEST_PY_FILE)))
if __name__ == "__main__":