[Python-checkins] cpython (merge 3.3 -> default): 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:34 CET 2012


http://hg.python.org/cpython/rev/66665ef7d9d6
changeset:   81169:66665ef7d9d6
parent:      81167:c6f9bc5a0cf1
parent:      81168:9472928af085
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Dec 31 11:37:34 2012 +0200
summary:
  Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.
Original patch by Stefan Behnel.

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