We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f10737 commit 65d4da5Copy full SHA for 65d4da5
qiita_core/util.py
@@ -80,7 +80,14 @@ def setUp(self):
80
@reset_test_database
81
def tearDown(self):
82
super(DecoratedClass, self).tearDown()
83
- del self.conn_handler
+ if self.conn_handler._user_conn is not None:
84
+ self.conn_handler._user_conn.close()
85
+
86
+ if self.conn_handler._admin_conn is not None:
87
+ self.conn_handler._admin_conn.close()
88
89
+ if self.conn_handler._admin_nodb_conn is not None:
90
+ self.conn_handler._admin_nodb_conn.close()
91
92
return DecoratedClass
93
return class_modifier
0 commit comments