BUG: fix failing usage of self.assertRaisesRegexp for python 2.6