mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Merged Jeffrey's changes in.
This commit is contained in:
parent
16bd0ff16a
commit
e8b81313db
@ -1,6 +1,6 @@
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user