From 8410b7525fea00a9bf7780791ae7cfbcd3c0c39a Mon Sep 17 00:00:00 2001 From: Gil Forcada Date: Sun, 3 May 2015 08:42:52 +0200 Subject: [PATCH] Do not redefine comment --- plone/app/discussion/tests/test_comments_viewlet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/tests/test_comments_viewlet.py b/plone/app/discussion/tests/test_comments_viewlet.py index ad3e08d..ef4d72b 100644 --- a/plone/app/discussion/tests/test_comments_viewlet.py +++ b/plone/app/discussion/tests/test_comments_viewlet.py @@ -185,7 +185,7 @@ class TestCommentForm(unittest.TestCase): self.assertEquals(comment.text, u"foobar") comments = IConversation(commentForm.context).getComments() - comments = [comment for comment in comments] # consume iterator + comments = [c for c in comments] # consume iterator self.assertEqual(len(comments), 1) for comment in comments: