fix test for py2.6 (no assertRaises as context manager)