In the case of a partnership, any income deferred under this subsection shall be allocated to the partners in the partnership immediately before the discharge in the manner such amounts would have been included in the distributive shares of such partners under section
704 if such income were recognized at such time. Any decrease in a partner’s share of partnership liabilities as a result of such discharge shall not be taken into account for purposes of section
752 at the time of the discharge to the extent it would cause the partner to recognize gain under section
731. Any decrease in partnership liabilities deferred under the preceding sentence shall be taken into account by such partner at the same time, and to the extent remaining in the same amount, as income deferred under this subsection is recognized.