mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.
Original patch by Stefan Behnel.
This commit is contained in:
commit
528b825cb1
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ class TestPEP380Operation(unittest.TestCase):
|
||||||
next(gi)
|
next(gi)
|
||||||
for x in range(3):
|
for x in range(3):
|
||||||
y = gi.send(42)
|
y = gi.send(42)
|
||||||
trace.append("Should not have yielded:", y)
|
trace.append("Should not have yielded: %s" % (y,))
|
||||||
except AttributeError as e:
|
except AttributeError as e:
|
||||||
self.assertIn("send", e.args[0])
|
self.assertIn("send", e.args[0])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue