[Python-checkins] cpython (3.3): Issue #16824: Fix a failure guard in the never reached in the normal test

serhiy.storchaka python-checkins at python.org
Mon Dec 31 10:38:33 CET 2012


http://hg.python.org/cpython/rev/9472928af085
changeset:   81168:9472928af085
branch:      3.3
parent:      81166:4fc2fea807e6
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Dec 31 11:31:41 2012 +0200
summary:
  Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.

files:
  Lib/test/test_pep380.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_pep380.py b/Lib/test/test_pep380.py
--- a/Lib/test/test_pep380.py
+++ b/Lib/test/test_pep380.py
@@ -519,7 +519,7 @@
             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:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list