Tenancy contracts are not a barrier to selling. The buyer will inherit the terms of the tenancy and replace the seller as landlord when the tenancy is transferred.