Depends on the original contract between the airlines. But, generally, the partnership agreements do survive for a while such as AA and Swiss, AY and Swiss, QF and US, etc. However, not always (AA and Lot).
Example of BA and HP's tie up timetable
http://www.britishairways.com/travel...2/public/en_us