Drop using assertRaisesRegexp(), as it is not supported in Python 2.6 .