[Python-checkins] cpython: Add error information to a failing test to help diagnose a buildbot failure.

raymond.hettinger python-checkins at python.org
Mon Aug 17 02:10:21 CEST 2015


https://hg.python.org/cpython/rev/f41ac4368e65
changeset:   97401:f41ac4368e65
user:        Raymond Hettinger <python at rcn.com>
date:        Sun Aug 16 17:08:48 2015 -0700
summary:
  Add error information to a failing test to help diagnose a buildbot failure.

files:
  Lib/test/test_symbol.py |  5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_symbol.py b/Lib/test/test_symbol.py
--- a/Lib/test/test_symbol.py
+++ b/Lib/test/test_symbol.py
@@ -38,7 +38,10 @@
         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__":

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list