We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b81f847 commit 65de2beCopy full SHA for 65de2be
django_nose/runner.py
@@ -297,6 +297,11 @@ def _should_create_database(connection):
297
298
# Notice whether the DB exists, and create it if it doesn't:
299
try:
300
+ # Slight modification to fix proposed at
301
+ # https://github.com/jbalogh/django-nose/pull/101
302
+ # for bug https://github.com/jbalogh/django-nose/issues/76
303
+ for conn in connections.all():
304
+ conn.close()
305
connection.cursor()
306
except Exception: # TODO: Be more discerning but still DB agnostic.
307
return True
0 commit comments