Fix 2.6 build by moving to old assertRaises()