diff options
author | Éric Araujo <merwok@netwok.org> | 2011-10-05 01:50:22 +0200 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-10-05 01:50:22 +0200 |
commit | 4300f69afd6278b890ae4d69cfa7b36daac02fb7 (patch) | |
tree | 8b3a784fed977690465d15e49f502092dda46ecf /Lib/test/support.py | |
parent | c4637714b0d1c80a8a7d40a590b1a113bf112ffd (diff) | |
download | cpython-git-4300f69afd6278b890ae4d69cfa7b36daac02fb7.tar.gz |
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/support.py')
-rw-r--r-- | Lib/test/support.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 619bf4cb41..556e82f4ac 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 |