Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Wrap up DB teardown in `after_all` in a try/except.

  • Loading branch information...
commit 01ccc307a2a8c666230ed59b7bfcda1fb15a3009 1 parent 7a1327e
@plasticine authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 tests/environment.py
View
7 tests/environment.py
@@ -23,8 +23,11 @@ def before_all(context):
def after_all(context):
# clean up django test DB
- db.close_connection()
- db.connection.creation.destroy_test_db(old_name, verbosity=0)
+ try:
+ db.close_connection()
+ db.connection.creation.destroy_test_db(old_name, verbosity=0)
+ except Exception, e:
+ pass
teardown_test_environment()
def before_feature(context, feature):
Please sign in to comment.
Something went wrong with that request. Please try again.