Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 42a751206f70ff01a72c172844365c860f092111 1 parent 1a6da24
Karen Tracey authored June 07, 2010
2  tests/modeltests/proxy_model_inheritance/tests.py
@@ -23,9 +23,9 @@ def setUp(self):
23 23
         settings.INSTALLED_APPS = ('app1', 'app2')
24 24
         map(load_app, settings.INSTALLED_APPS)
25 25
         call_command('syncdb', verbosity=0)
  26
+        global ProxyModel, NiceModel
26 27
         from app1.models import ProxyModel
27 28
         from app2.models import NiceModel
28  
-        global ProxyModel, NiceModel
29 29
 
30 30
     def tearDown(self):
31 31
         settings.INSTALLED_APPS = self.old_installed_apps

0 notes on commit 42a7512

Please sign in to comment.
Something went wrong with that request. Please try again.