mirror of https://github.com/django/django.git
Fixed #13657: Moved global declaration before assignments to avoid a syntax warning. Thanks Alex.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1a6da249c3
commit
42a751206f
|
@ -23,9 +23,9 @@ class ProxyModelInheritanceTests(TransactionTestCase):
|
||||||
settings.INSTALLED_APPS = ('app1', 'app2')
|
settings.INSTALLED_APPS = ('app1', 'app2')
|
||||||
map(load_app, settings.INSTALLED_APPS)
|
map(load_app, settings.INSTALLED_APPS)
|
||||||
call_command('syncdb', verbosity=0)
|
call_command('syncdb', verbosity=0)
|
||||||
|
global ProxyModel, NiceModel
|
||||||
from app1.models import ProxyModel
|
from app1.models import ProxyModel
|
||||||
from app2.models import NiceModel
|
from app2.models import NiceModel
|
||||||
global ProxyModel, NiceModel
|
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
settings.INSTALLED_APPS = self.old_installed_apps
|
settings.INSTALLED_APPS = self.old_installed_apps
|
||||||
|
|
Loading…
Reference in New Issue