Fixed #19589 -- assertRegexpMatches is deprecated in Python 3.3.