diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-04-02 15:32:07 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-04-02 15:32:07 (GMT) |
commit | 978259e9b3744027304477306a13b0c32d21885c (patch) | |
tree | 16704fa5f11c430e4d77104d68993bcdff677408 /Lib | |
parent | 944820b044ce3944dcef1b514e075118f6872942 (diff) | |
download | cpython-978259e9b3744027304477306a13b0c32d21885c.zip cpython-978259e9b3744027304477306a13b0c32d21885c.tar.gz cpython-978259e9b3744027304477306a13b0c32d21885c.tar.bz2 |
Give a more informative message on an importlib test upon failure.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/importlib/test/source/test_abc_loader.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/importlib/test/source/test_abc_loader.py b/Lib/importlib/test/source/test_abc_loader.py index 0e7408d..a237a5f 100644 --- a/Lib/importlib/test/source/test_abc_loader.py +++ b/Lib/importlib/test/source/test_abc_loader.py @@ -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>' |