#30353: Recursion Error while running tests
-------------------------------------+-------------------------------------
Reporter: Manan | Owner: nobody
Type: Bug | Status: assigned
Component: Testing | Version: master
framework |
Severity: Normal | Keywords: recustion,tests
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
This is the output I get -
{{{
$ ./runtests.py queries
Testing against Django installed in '<path>' with up to 4 processes
Creating test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
System check identified no issues (1 silenced).
s.....sss........s.......................s..........s......................s.......x................x.........................................................................................s...................................................................................F........................................................................................
======================================================================
FAIL: test_avoid_infinite_loop_on_too_many_subqueries
(queries.tests.Queries1Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/tmp/django/tests/queries/tests.py", line 409, in
test_avoid_infinite_loop_on_too_many_subqueries
x = Tag.objects.filter(pk__in=x)
File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "<path>/django/django/test/testcases.py", line 676, in
_assert_raises_or_warns_cm
self.assertIn(expected_message, str(getattr(cm, cm_attr)))
File "/usr/lib/python3.6/unittest/case.py", line 1089, in assertIn
self.fail(self._formatMessage(msg, standardMsg))
File "/usr/lib/python3.6/unittest/case.py", line 670, in fail
raise self.failureException(msg)
AssertionError: 'Maximum recursion depth exceeded: too many subqueries.'
not found in 'maximum recursion depth exceeded in comparison'
----------------------------------------------------------------------
Ran 363 tests in 0.622s
FAILED (failures=1, skipped=9, expected failures=2)
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30353>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.facdedbfd3178df19342cd0ebf2c1b4d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.