From aa23fbb1c9df58631843e98b791c8a6790fb917c Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sun, 30 Aug 2015 09:18:28 +1000 Subject: [PATCH] correct object reference --- pymysql/tests/test_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymysql/tests/test_connection.py b/pymysql/tests/test_connection.py index cd33d99..64973a2 100644 --- a/pymysql/tests/test_connection.py +++ b/pymysql/tests/test_connection.py @@ -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')