correct object reference

This commit is contained in:
Daniel Black
2015-08-30 09:18:28 +10:00
parent 98b659ddf7
commit aa23fbb1c9

View File

@@ -332,7 +332,7 @@ class TestAuthentication(base.PyMySQLTestCase):
c = self.connections[0].cursor()
with TempUser(c, 'pymysql_sha256@localhost',
self.databases[0]['db'], 'sha256_password') as u:
if self.mysql_server_is(conn, (5, 7, 0)):
if self.mysql_server_is(self.connections[0], (5, 7, 0)):
c.execute("SET PASSWORD FOR 'pymysql_sha256'@'localhost' ='Sh@256Pa33'")
else:
c.execute('SET old_passwords = 2')