'autocommit is not set after reconnecting with ping()'

def test_issue_114(self):

    conn = pymysql.connect(charset='utf8', **self.databases[0])
    conn.autocommit(False)
    c = conn.cursor()
    c.execute('select    @@autocommit;')
    self.assertFalse(c.fetchone()[0])
    conn.close()
    conn.ping()
    c.execute('select    @@autocommit;')
    self.assertFalse(c.fetchone()[0])
    conn.close()
    conn = pymysql.connect(charset='utf8', **self.databases[0])
    c = conn.cursor()
    c.execute('select    @@autocommit;')
    self.assertFalse(c.fetchone()[0])
    conn.close()
    conn.ping()
    conn.autocommit(True)
    c.execute('select    @@autocommit;')
    self.assertTrue(c.fetchone()[0])
    conn.close()
