Commit e8b81313 authored by Guido van Rossum's avatar Guido van Rossum

Merged Jeffrey's changes in.

parent 16bd0ff1
from test_support import verbose
import re
import sys, traceback
import sys, os, string, traceback
from re_tests import *
if verbose: print 'Running re_tests test suite'
......@@ -50,6 +50,13 @@ for t in tests:
except IndexError:
gi = "Error"
vardict['g%d' % i] = gi
for i in result.re.groupindex.keys():
try:
gi = result.group(i)
except IndexError:
pass
else:
vardict[i] = str(gi)
repl=eval(repl, vardict)
if repl!=expected:
print '=== grouping error', t,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment