summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2012-12-31 09:37:34 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2012-12-31 09:37:34 (GMT)
commit528b825cb1db4611c80ea2dff74b47eb71a4d029 (patch)
treef5a7cc6ec4ac200dd61487e9f20f78df16c3d77d
parent1dce0003a662c8d1adf664b598b7941ad83bf23b (diff)
parent5da57027efb830f1bb6dfeecade94faee28b21ae (diff)
downloadcpython-528b825cb1db4611c80ea2dff74b47eb71a4d029.zip
cpython-528b825cb1db4611c80ea2dff74b47eb71a4d029.tar.gz
cpython-528b825cb1db4611c80ea2dff74b47eb71a4d029.tar.bz2
Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.
Original patch by Stefan Behnel.
-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: