mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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:
parent
847ed4afb5
commit
23b8d4c15e
3 changed files with 7 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue