@unittest2.skipUnless(sys.version_info[0:2] >= (3,2), "required py-3.2")
    def test_no_delay_warning(self):
        current_db = self.databases[0].copy()
        current_db['no_delay'] =  True
        with self.assertWarns(DeprecationWarning) as cm:
            conn = pymysql.connect(**current_db)


# A custom type and function to escape it
dataset/ETHPy150Open NikolayRag/typeTodo/PyMySQL/pymysql/tests/test_connection.py/TestConnection.test_no_delay_warning/original