mirror of https://github.com/python/cpython
Add error information to a failing test to help diagnose a buildbot failure.
This commit is contained in:
parent
ca3788c2e8
commit
bb562a9a56
|
@ -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__":
|
||||
|
|
Loading…
Reference in New Issue