From 7a6863c3380c85c6d93003a31c4fa3d83826832b Mon Sep 17 00:00:00 2001 From: David Szotten Date: Fri, 6 Jan 2017 20:28:22 +0000 Subject: [PATCH] Fixed #27690 -- Removed time.sleep(1) before dropping the test database. Uncertain if this is needed, but no failures have appeared so far. --- django/db/backends/base/creation.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/db/backends/base/creation.py b/django/db/backends/base/creation.py index 71b5017a19b..0cb6d75ff35 100644 --- a/django/db/backends/base/creation.py +++ b/django/db/backends/base/creation.py @@ -1,5 +1,4 @@ import sys -import time from django.apps import apps from django.conf import settings @@ -277,8 +276,6 @@ class BaseDatabaseCreation(object): # to do so, because it's not allowed to delete a database while being # connected to it. with self.connection._nodb_connection.cursor() as cursor: - # Wait to avoid "database is being accessed by other users" errors. - time.sleep(1) cursor.execute("DROP DATABASE %s" % self.connection.ops.quote_name(test_database_name))