[Python-checkins] r71053 - python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py
brett.cannon
python-checkins at python.org
Thu Apr 2 17:32:07 CEST 2009
Author: brett.cannon
Date: Thu Apr 2 17:32:07 2009
New Revision: 71053
Log:
Give a more informative message on an importlib test upon failure.
Modified:
python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py
Modified: python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py
==============================================================================
--- python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py (original)
+++ python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py Thu Apr 2 17:32:07 2009
@@ -123,7 +123,9 @@
def eq_attrs(self, ob, **kwargs):
for attr, val in kwargs.items():
- self.assertEqual(getattr(ob, attr), val)
+ found = getattr(ob, attr)
+ self.assertEqual(found, val,
+ "{} attribute: {} != {}".format(attr, found, val))
def test_module(self):
name = '<module>'
More information about the Python-checkins
mailing list