changeset 5914:c840e8a571d3

issue2551025- mysql failure with 1.3.14 mysqlclient. Do we have a double close error here?
author John Rouillard <rouilj@ieee.org>
date Sat, 12 Oct 2019 21:05:50 -0400
parents e7fe1d4398ba
children 8814d1d5cb4e
files test/test_mysql.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_mysql.py	Sat Oct 12 20:18:38 2019 -0400
+++ b/test/test_mysql.py	Sat Oct 12 21:05:50 2019 -0400
@@ -35,7 +35,8 @@
         self.module.db_nuke(config)
 
     def tearDown(self):
-        self.db.close()
+        if self.db:
+	    self.db.close()
         self.nuke_database()
 
     def nuke_database(self):

Roundup Issue Tracker: http://roundup-tracker.org/