diff --git a/extra/shutils/regressiontest.py b/extra/shutils/regressiontest.py index 9376f14e8..f7bb3deb6 100644 --- a/extra/shutils/regressiontest.py +++ b/extra/shutils/regressiontest.py @@ -79,7 +79,7 @@ if CONTENT: msg["From"] = FROM msg["To"] = TO - for test_count, attachment in ATTACHMENTS: + for test_count, attachment in ATTACHMENTS.items(): attachment = MIMEText(attachment) attachment.add_header('Content-Disposition', 'attachment', filename="test_case_%d_console_output.txt" % test_count) msg.attach(attachment)