#33264: DiscoverRunner doesn't counts unexpectedSuccess as an error
-------------------------------------+-------------------------------------
     Reporter:  Baptiste Mispelon    |                    Owner:  Baptiste
                                     |  Mispelon
         Type:  Bug                  |                   Status:  assigned
    Component:  Testing framework    |                  Version:  3.2
     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
-------------------------------------+-------------------------------------
Changes (by Baptiste Mispelon):

 * owner:  nobody => Baptiste Mispelon
 * status:  new => assigned


Comment:

 Thanks for the quick triage and the git history research.

 I'll get started on a PR today.

 Meanwhile, if anyone finds this ticket looking for a workaround, it's easy
 enough to write a custom runner and point to it in `settings.TEST_RUNNER`:
 {{{#!py
 class CustomTestRunner(DiscoverRunner):
     """
     A custom test runner to get around Django bug
     https://code.djangoproject.com/ticket/33264
     """
     def suite_result(self, suite, result, **kwargs):
         return len(result.failures) + len(result.errors) +
 len(result.unexpectedSuccesses)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33264#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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.aa360439a15392693af1bf8f27e93b00%40djangoproject.com.

Reply via email to