summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2012-12-31 09:31:41 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2012-12-31 09:31:41 (GMT)
commit5da57027efb830f1bb6dfeecade94faee28b21ae (patch)
tree1cdb228f59c95615abe9fa379efdbfc9ae5aabd9 /Lib/test
parent0dc5ab41f07a26deaebe46f593e572e221772aa2 (diff)
downloadcpython-5da57027efb830f1bb6dfeecade94faee28b21ae.zip
cpython-5da57027efb830f1bb6dfeecade94faee28b21ae.tar.gz
cpython-5da57027efb830f1bb6dfeecade94faee28b21ae.tar.bz2
Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_pep380.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pep380.py b/Lib/test/test_pep380.py
index 9569e10..f3eed43 100644
--- a/Lib/test/test_pep380.py
+++ b/Lib/test/test_pep380.py
@@ -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: