tests: allow more detailed error message from re.compile
test-grep.t now passes on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D4240
{header} <title>{repo|escape}: tags</title> <description>{repo|escape} tag history</description> {entriesnotip%tagentry} </channel></rss>