From 603bcf35473962d01519731557806a8e1f889497 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 3 Oct 2010 16:52:26 +0000 Subject: [PATCH] Ignore certain lines for code coverage. svn path=/plone.app.discussion/trunk/; revision=40494 --- plone/app/discussion/browser/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index b32a7c6..ddeb5b4 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -211,7 +211,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form): def handleCancel(self, action): # This method should never be called, it's only there to show # a cancel button that is handled by a jQuery method. - pass + pass # pragma: no cover class CommentsViewlet(ViewletBase): @@ -261,7 +261,7 @@ class CommentsViewlet(ViewletBase): self.get_replies(workflow_actions).next() return True except StopIteration: - pass + pass # pragma: no cover return False def get_replies(self, workflow_actions=False):