mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #14049 -- Made our TestCase subclasses not load database fixtures (nor set up custom URLconfs) for test methods that are going to be skipped. Thanks zimnyx for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -282,6 +282,11 @@ class TransactionTestCase(ut2.TestCase):
|
||||
set up. This means that user-defined Test Cases aren't required to
|
||||
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
|
||||
|
||||
self.client = self.client_class()
|
||||
try:
|
||||
self._pre_setup()
|
||||
|
||||
Reference in New Issue
Block a user