Skip to content

Commit

Permalink
Issue Fix jazzband#76 jazzband#101 django-nose/django-nose
Browse files Browse the repository at this point in the history
  • Loading branch information
dullaran committed May 30, 2014
1 parent b7d25c4 commit 0286429
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions django_nose/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ def _should_create_database(connection):

# Notice whether the DB exists, and create it if it doesn't:
try:
# Slight modification to fix proposed at
# https://github.com/jbalogh/django-nose/pull/101
# for bug https://github.com/jbalogh/django-nose/issues/76
for conn in connections.all():
conn.close()
connection.cursor()
except Exception: # TODO: Be more discerning but still DB agnostic.
return True
Expand Down

0 comments on commit 0286429

Please sign in to comment.