Kaydet (Commit) bb562a9a authored tarafından Raymond Hettinger's avatar Raymond Hettinger

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

üst ca3788c2
......@@ -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__":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment