skip assertRaises in optimized mode