diff options
Diffstat (limited to 'testsuite/common.py')
-rw-r--r-- | testsuite/common.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/common.py b/testsuite/common.py index 47e3bfb14..9db2cb94a 100644 --- a/testsuite/common.py +++ b/testsuite/common.py @@ -221,10 +221,14 @@ class DBModelTestCase(Bcfg2TestCase): if self.models: import django import django.core.management + from django.core.exceptions import ImproperlyConfigured if django.VERSION[0] == 1 and django.VERSION[1] < 7: - django.core.management.call_command('syncdb', interactive=False, - verbosity=0) + try: + django.core.management.call_command('syncdb', interactive=False, + verbosity=0) + except ImproperlyConfigured: + pass django.core.management.call_command('migrate', interactive=False, verbosity=0) |