#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 ojii):

 Ran the tests manually now and get the following:


 {{{
 jenkins@pony:~/jobs/Django/workspace/database/mysql/python/python2.6/tests$
 python runtests.py --settings=test_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'...
 Creating test database for alias 'other'...

 Running tests...
 ----------------------------------------------------------------------
 
..........................................F................................................
 ======================================================================
 FAIL [0.000s]: testRenderCommentFormFromObjectWithQueryCount
 (regressiontests.comment_tests.tests.templatetag_tests.CommentTemplateTagTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 
"/var/lib/jenkins/jobs/Django/workspace/database/mysql/python/python2.6/tests/regressiontests/comment_tests/tests/templatetag_tests.py",
 line 46, in testRenderCommentFormFromObjectWithQueryCount
     self.assertNumQueries(1, test)
   File
 
"/var/lib/jenkins/jobs/Django/workspace/database/mysql/python/python2.6/tests/django/test/testcases.py",
 line 549, in assertNumQueries
     func(*args, **kwargs)
   File
 
"/var/lib/jenkins/jobs/Django/workspace/database/mysql/python/python2.6/tests/django/test/testcases.py",
 line 234, in __exit__
     executed, self.num
 AssertionError: 2 != 1 : 2 queries executed, 1 expected

 ----------------------------------------------------------------------
 Ran 91 tests in 16.534s

 FAILED (failures=1)

 Generating XML reports...
 Destroying test database for alias 'default'...
 Destroying test database for alias 'other'...
 ***** Found problem pair with comment_tests
 jenkins@pony:~/jobs/Django/workspace/database/mysql/python/python2.6/tests$
 python runtests.py --settings=test_mysql comment_tests
 Creating test database for alias 'default'...
 Creating test database for alias 'other'...

 Running tests...
 ----------------------------------------------------------------------
 
..........................................................................................
 ----------------------------------------------------------------------
 Ran 90 tests in 16.689s

 OK

 Generating XML reports...
 Destroying test database for alias 'default'...
 Destroying test database for alias 'other'...
 jenkins@pony:~/jobs/Django/workspace/database/mysql/python/python2.6/tests$
 python --version
 Python 2.6.5
 jenkins@pony:~/jobs/Django/workspace/database/mysql/python/python2.6/tests$
 mysql --version
 mysql  Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using
 readline 6.1
 jenkins@pony:~/jobs/Django/workspace/database/mysql/python/python2.6/tests$
 uname -a
 Linux pony 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011
 x86_64 GNU/Linux
 }}}

 only seems to fail in pairing mode

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16282#comment:4>
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.

Reply via email to