#16372: TransactionTestCase doesn't count skipped cases in test result. --------------------+----------------------------------- Reporter: zimnyx | Owner: nobody Type: Bug | Status: new Milestone: | Component: Testing framework Version: SVN | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | Easy pickings: 0 UI/UX: 0 | --------------------+----------------------------------- In r16369 return was added for test cases decorated with unittest.skip: {{{ Index: django/trunk/django/test/testcases.py =================================================================== --- a/django/trunk/django/test/testcases.py +++ b/django/trunk/django/test/testcases.py @@ -283,4 +283,9 @@ include a call to super().setUp(). """ + testMethod = getattr(self, self._testMethodName) + if (getattr(self.__class__, "__unittest_skip__", False) or + getattr(testMethod, "__unittest_skip__", False)): + return
}}} This should solve the problem: {{{ self._addSkip(result, skip_why) }}} Cheers! -- Ticket URL: <https://code.djangoproject.com/ticket/16372> 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.