diff --git a/tests/modeltests/proxy_model_inheritance/tests.py b/tests/modeltests/proxy_model_inheritance/tests.py
index 546c507..813cfd2 100644
--- a/tests/modeltests/proxy_model_inheritance/tests.py
+++ b/tests/modeltests/proxy_model_inheritance/tests.py
@@ -22,15 +22,15 @@ class ProxyModelInheritanceTests(TransactionTestCase):
         self.old_installed_apps = settings.INSTALLED_APPS
         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
 
     def tearDown(self):
         settings.INSTALLED_APPS = self.old_installed_apps
         sys.path = self.old_sys_path
 
     def test_table_exists(self):
+        call_command('syncdb', verbosity=0)
+        global ProxyModel, NiceModel
+        from app1.models import ProxyModel
+        from app2.models import NiceModel
         self.assertEqual(NiceModel.objects.all().count(), 0)
         self.assertEqual(ProxyModel.objects.all().count(), 0)
