Do not redefine comment

This commit is contained in:
Gil Forcada 2015-05-03 08:42:52 +02:00
parent 754e712372
commit 8410b7525f

View File

@ -185,7 +185,7 @@ class TestCommentForm(unittest.TestCase):
self.assertEquals(comment.text, u"foobar") self.assertEquals(comment.text, u"foobar")
comments = IConversation(commentForm.context).getComments() 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) self.assertEqual(len(comments), 1)
for comment in comments: for comment in comments: