Commit 978259e9 authored by Brett Cannon's avatar Brett Cannon

Give a more informative message on an importlib test upon failure.

parent 944820b0
......@@ -123,7 +123,9 @@ class PyLoaderTests(testing_abc.LoaderTests):
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>'
......
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