#16282: CommentTemplateTagTests.testRenderCommentFormFromObjectWithQueryCount fails on MySQL ------------------------------------+----------------------------------- Reporter: ojii | Owner: nobody Type: Bug | Status: new Milestone: | Component: Testing framework Version: SVN | Severity: Normal Resolution: | Keywords: Triage Stage: Accepted | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | ------------------------------------+-----------------------------------
Comment (by jezdez): Seems like a caching issue to me, running the postgres tests gives me the same: {{{ [~/Code/git/django/tests] git:master env:django-dev $ python runtests.py --settings=django_testing.mysql comment_tests --pair text.TextTests.test_cookie_date ***** Trying paired execution ***** 1 of 1: Check test pairing with comment_tests Creating test database for alias 'default'... ..........................................F................................................ ====================================================================== FAIL: testRenderCommentFormFromObjectWithQueryCount (regressiontests.comment_tests.tests.templatetag_tests.CommentTemplateTagTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jezdez/Code/git/django/tests/regressiontests/comment_tests/tests/templatetag_tests.py", line 46, in testRenderCommentFormFromObjectWithQueryCount self.assertNumQueries(1, test) File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 549, in assertNumQueries func(*args, **kwargs) File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 234, in __exit__ executed, self.num AssertionError: 2 != 1 : 2 queries executed, 1 expected ---------------------------------------------------------------------- Ran 91 tests in 43.983s FAILED (failures=1) Destroying test database for alias 'default'... ***** Found problem pair with comment_tests [~/Code/git/django/tests] git:master env:django-dev $ python runtests.py --settings=django_testing.postgres comment_tests --pair text.TextTests.test_cookie_date ***** Trying paired execution ***** 1 of 1: Check test pairing with comment_tests Creating test database for alias 'default'... ..........................................F................................................ ====================================================================== FAIL: testRenderCommentFormFromObjectWithQueryCount (regressiontests.comment_tests.tests.templatetag_tests.CommentTemplateTagTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jezdez/Code/git/django/tests/regressiontests/comment_tests/tests/templatetag_tests.py", line 46, in testRenderCommentFormFromObjectWithQueryCount self.assertNumQueries(1, test) File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 549, in assertNumQueries func(*args, **kwargs) File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 234, in __exit__ executed, self.num AssertionError: 2 != 1 : 2 queries executed, 1 expected ---------------------------------------------------------------------- Ran 91 tests in 31.527s FAILED (failures=1) Destroying test database for alias 'default'... ***** Found problem pair with comment_tests [~/Code/git/django/tests] git:master env:django-dev $ python runtests.py --settings=django_testing.mysql comment_tests Creating test database for alias 'default'... .......................................................................................... ---------------------------------------------------------------------- Ran 90 tests in 47.637s OK Destroying test database for alias 'default'... [~/Code/git/django/tests] git:master env:django-dev $ python runtests.py --settings=django_testing.postgres comment_tests Creating test database for alias 'default'... .......................................................................................... ---------------------------------------------------------------------- Ran 90 tests in 29.361s OK Destroying test database for alias 'default'... }}} -- Ticket URL: <https://code.djangoproject.com/ticket/16282#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.