Fix Python 2.6 build issue: use assertRaisesRegexp from testing module