Tweak re_tests and test_re to differentiate between

groups that have no value and groups that are out of bounds.
This commit is contained in:
Guido van Rossum 1997-07-15 15:49:52 +00:00
parent 847ed4afb5
commit 23b8d4c15e
3 changed files with 7 additions and 5 deletions

View file

@ -48,7 +48,7 @@ for t in tests:
# Special hack because else the string concat fails:
if gi is None: gi = "None"
except IndexError:
gi = "None"
gi = "Error"
vardict['g%d' % i] = gi
repl=eval(repl, vardict)
if repl!=expected: