Permalink
Browse files

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
  • Loading branch information...
1 parent 1a6da24 commit 42a751206f70ff01a72c172844365c860f092111 @kmtracey kmtracey committed Jun 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/modeltests/proxy_model_inheritance/tests.py
View
2 tests/modeltests/proxy_model_inheritance/tests.py
@@ -23,9 +23,9 @@ def setUp(self):
settings.INSTALLED_APPS = ('app1', 'app2')
map(load_app, settings.INSTALLED_APPS)
call_command('syncdb', verbosity=0)
+ global ProxyModel, NiceModel
from app1.models import ProxyModel
from app2.models import NiceModel
- global ProxyModel, NiceModel
def tearDown(self):
settings.INSTALLED_APPS = self.old_installed_apps

0 comments on commit 42a7512

Please sign in to comment.