skip regex flags test if py3