summaryrefslogtreecommitdiff
path: root/django/test/simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/test/simple.py')
-rw-r--r--django/test/simple.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/test/simple.py b/django/test/simple.py
index e72f693459..2469f80b3a 100644
--- a/django/test/simple.py
+++ b/django/test/simple.py
@@ -61,7 +61,8 @@ def run_tests(module_list, verbosity=1, extra_tests=[]):
for test in extra_tests:
suite.addTest(test)
- old_name = create_test_db(verbosity)
+ old_name = settings.DATABASE_NAME
+ create_test_db(verbosity)
management.syncdb(verbosity, interactive=False)
unittest.TextTestRunner(verbosity=verbosity).run(suite)
destroy_test_db(old_name, verbosity)