Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #13509 -- Modified the comment tests so that signal cleanup doe…

…sn't rely on garbage collection. Thanks to Alex Gaynor for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 861baecd844bf0b1c153be18639bb285e75ec1d7 1 parent 819f43f
@freakboy3742 freakboy3742 authored
3  tests/regressiontests/comment_tests/tests/
@@ -174,12 +174,13 @@ def testWillBePostedSignal(self):
actually getting saved
def receive(sender, **kwargs): return False
- signals.comment_will_be_posted.connect(receive)
+ signals.comment_will_be_posted.connect(receive, dispatch_uid="comment-test")
a = Article.objects.get(pk=1)
data = self.getValidData(a)
response ="/post/", data)
self.assertEqual(response.status_code, 400)
self.assertEqual(Comment.objects.count(), 0)
+ signals.comment_will_be_posted.disconnect(dispatch_uid="comment-test")
def testWillBePostedSignalModifyComment(self):

0 comments on commit 861baec

Please sign in to comment.
Something went wrong with that request. Please try again.