'Leftover trailing OK packet for "CALL my_sp" queries'

def test_issue_95(self):

    conn = self.connections[0]
    cur = conn.cursor()
    with warnings.catch_warnings():
        warnings.filterwarnings('ignore')
        cur.execute('DROP    PROCEDURE    IF    EXISTS    `foo`')
    cur.execute('CREATE    PROCEDURE    `foo`    ()\n                                BEGIN\n                                                SELECT    1;\n                                END')
    try:
        cur.execute('CALL    foo()')
        cur.execute('SELECT    1')
        self.assertEqual(cur.fetchone()[0], 1)
    finally:
        with warnings.catch_warnings():
            warnings.filterwarnings('ignore')
            cur.execute('DROP    PROCEDURE    IF    EXISTS    `foo`')
