change simple test case for assertErrorRegex to work on both Python 2.6 and 2.4