@testing.requires.savepoints_w_release
def test_savepoint_release_fails_flat(self):
    with testing.db.connect() as connection:
        t1 = connection.begin()
        s1 = connection.begin_nested()
        connection.dialect.do_release_savepoint(connection, s1._savepoint)
        assert_raises_message(exc.DBAPIError, '.*SQL\\:.*RELEASE SAVEPOINT', s1.commit)
        assert (not s1.is_active)
        s1.rollback()
        t1.commit()
@testing.requires.savepoints_w_release
def test_savepoint_release_fails_flat(self):
    with testing.db.connect() as connection:
        t1 = connection.begin()
        s1 = connection.begin_nested()
        connection.dialect.do_release_savepoint(connection, s1._savepoint)
        assert_raises_message(exc.DBAPIError, '.*SQL\\:.*RELEASE SAVEPOINT', s1.commit)
        assert (not s1.is_active)
        s1.rollback()
        t1.commit()