summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-10-04 23:50:22 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-10-04 23:50:22 (GMT)
commit4300f69afd6278b890ae4d69cfa7b36daac02fb7 (patch)
tree8b3a784fed977690465d15e49f502092dda46ecf /Lib/test
parentc4637714b0d1c80a8a7d40a590b1a113bf112ffd (diff)
downloadcpython-4300f69afd6278b890ae4d69cfa7b36daac02fb7.zip
cpython-4300f69afd6278b890ae4d69cfa7b36daac02fb7.tar.gz
cpython-4300f69afd6278b890ae4d69cfa7b36daac02fb7.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/support.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index 619bf4c..556e82f4 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