Implement assertRaises and assertRaisesRegexp context managers for Python 2.6