Fixed assertRaisesRegexp test (especially for Python 2.6)