mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Merged Jeffrey's changes in.
This commit is contained in:
parent
16bd0ff16a
commit
e8b81313db
1 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue