From: Éric Araujo Date: Tue, 4 Oct 2011 23:50:22 +0000 (+0200) Subject: Update skip message printed by test.support.get_attribute. X-Git-Tag: v3.3.0a1~1290^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4300f69afd6278b890ae4d69cfa7b36daac02fb7;p=thirdparty%2FPython%2Fcpython.git Update skip message printed by test.support.get_attribute. This helper was changed to work with any object instead of only modules (or technically something with a __name__ attribute, see code in 3.2) but the message stayed as is. --- diff --git a/Lib/test/support.py b/Lib/test/support.py index 619bf4cb4165..556e82f4acf1 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -187,8 +187,7 @@ def get_attribute(obj, name): try: attribute = getattr(obj, name) except AttributeError: - raise unittest.SkipTest("module %s has no attribute %s" % ( - repr(obj), name)) + raise unittest.SkipTest("object %r has no attribute %r" % (obj, name)) else: return attribute