]> granicus.if.org Git - python/commitdiff
Issue #16824: Fix a failure guard in the never reached in the normal test execution...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 31 Dec 2012 09:31:41 +0000 (11:31 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 31 Dec 2012 09:31:41 +0000 (11:31 +0200)
Lib/test/test_pep380.py

index 9569e10c9e566cb76ce88d843263da54f64fb878..f3eed4353b92cc478085921c32c63b35fcf97843 100644 (file)
@@ -519,7 +519,7 @@ class TestPEP380Operation(unittest.TestCase):
             next(gi)
             for x in range(3):
                 y = gi.send(42)
-                trace.append("Should not have yielded:", y)
+                trace.append("Should not have yielded: %s" % (y,))
         except AttributeError as e:
             self.assertIn("send", e.args[0])
         else: