mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user