diff Lib/test/support.py @ 72733:472ee6ed7949

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.
author Éric Araujo <merwok@netwok.org>
date Wed, 05 Oct 2011 01:50:22 +0200
parents f2ed0310adec
children 767badea87c3
line wrap: on
line diff
--- a/Lib/test/support.py	Wed Oct 05 01:46:37 2011 +0200
+++ b/Lib/test/support.py	Wed Oct 05 01:50:22 2011 +0200
@@ -187,8 +187,7 @@
     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