From 4bc808533f6f2d57c31493f6bb8f18594413fb5c Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Thu, 10 May 2001 01:28:40 +0000 Subject: [PATCH] patch 418489 from Andrew Dalke for string format bug --- Lib/unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/unittest.py b/Lib/unittest.py index 72414fa3887..c3faa10e3fc 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -443,7 +443,7 @@ class TestLoader: if not isinstance(test, TestCase) and \ not isinstance(test, TestSuite): raise ValueError, \ - "calling %s returned %s, not a test" % obj,test + "calling %s returned %s, not a test" % (obj,test) return test else: raise ValueError, "don't know how to make test from: %s" % obj