Make assertRaises() work under Python 2.6