Ticket #13657: django-syntax-warning.diff

File django-syntax-warning.diff, 724 bytes (added by Alex Gaynor, 14 years ago)
  • tests/modeltests/proxy_model_inheritance/tests.py

    diff --git a/tests/modeltests/proxy_model_inheritance/tests.py b/tests/modeltests/proxy_model_inheritance/tests.py
    index a07958a..d10d6a4 100644
    a b class ProxyModelInheritanceTests(TransactionTestCase):  
    2323        settings.INSTALLED_APPS = ('app1', 'app2')
    2424        map(load_app, settings.INSTALLED_APPS)
    2525        call_command('syncdb', verbosity=0)
     26        global ProxyModel, NiceModel
    2627        from app1.models import ProxyModel
    2728        from app2.models import NiceModel
    28         global ProxyModel, NiceModel
    2929
    3030    def tearDown(self):
    3131        settings.INSTALLED_APPS = self.old_installed_apps
Back to Top