Commits

Serhiy Storchaka committed 66665ef Draft Merge

Issue #16824: Fix a failure guard in the never reached in the normal test execution code in test_pep380.
Original patch by Stefan Behnel.

  • Participants
  • Parent commits c6f9bc5, 9472928

Comments (0)

Files changed (1)

Lib/test/test_pep380.py

             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: