@testing.requires.savepoints
def test_deactivated_savepoint_warning_ctxmanager(self, local_connection):
    with expect_warnings('nested transaction already deassociated from connection'):
        with local_connection.begin():
            with local_connection.begin_nested() as savepoint:
                savepoint.rollback()
@testing.requires.savepoints
def test_deactivated_savepoint_warning_ctxmanager(self, local_connection):
    with expect_warnings('nested transaction already deassociated from connection'):
        with local_connection.begin():
            with local_connection.begin_nested() as savepoint:
                savepoint.rollback()