mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 03:50:43 +08:00
Update UnitTest methods deprecated in Python 2.7
This commit is contained in:
@ -44,7 +44,7 @@ class CoreAPI(unittest.TestCase):
|
||||
"""Test _mysql interaction internals."""
|
||||
|
||||
def setUp(self):
|
||||
self.conn = _mysql.connect(db='test', read_default_file="~/.my.cnf")
|
||||
self.conn = _mysql.connect(db='test', host='127.0.0.1', user='test') #read_default_file="~/.my.cnf")
|
||||
|
||||
def tearDown(self):
|
||||
self.conn.close()
|
||||
|
Reference in New Issue
Block a user