summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/unittest/suite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/suite.py b/Lib/unittest/suite.py
index 8672aab3ad..35b7d91da3 100644
--- a/Lib/unittest/suite.py
+++ b/Lib/unittest/suite.py
@@ -40,7 +40,7 @@ class TestSuite(object):
def addTest(self, test):
# sanity checks
if not hasattr(test, '__call__'):
- raise TypeError("the test to add must be callable")
+ raise TypeError("{} is not callable".format(repr(test)))
if isinstance(test, type) and issubclass(test,
(case.TestCase, TestSuite)):
raise TypeError("TestCases and TestSuites must be instantiated "