Skip to content

Commit 74e0a11

Browse files
author
Thomas Grainger
committed
Fix TestXMySQL
1 parent c34fd2b commit 74e0a11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/io/tests/test_sql.py

+7
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,13 @@ def setUp(self):
22522252
"[pandas] in your system's mysql default file, "
22532253
"typically located at ~/.my.cnf or /etc/.my.cnf. ")
22542254

2255+
def tearDown(self):
2256+
from pymysql.err import Error
2257+
try:
2258+
self.db.close()
2259+
except Error:
2260+
pass
2261+
22552262
def test_basic(self):
22562263
_skip_if_no_pymysql()
22572264
frame = tm.makeTimeDataFrame()

0 commit comments

Comments
 (0)