#15919: Test failure on specific label
-----------------------------------+--------------------------------------
Reporter: BerislavLopac | Owner: nobody
Type: Bug | Status: reopened
Component: Testing framework | Version: 1.4
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by aigarius):
* status: closed => reopened
* ui_ux: => 0
* resolution: worksforme =>
* version: 1.3 => 1.4
* easy: 0 => 1
Comment:
This issue shows up if the tests are defined in the application using the
suite(). The django.test.simple.build_suite() function has support for
such arrangement (which is why testing the whole app works), but
django.test.simple.build_test() does not which is why running a single
test class or test case fails with the above error. The fix would be to
call build_suite in build_test and then iterate over the TestSuite, just
like it is done in the Doctest code in the same function.
--
Ticket URL: <https://code.djangoproject.com/ticket/15919#comment:2>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.