summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-15 15:49:52 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-15 15:49:52 (GMT)
commit23b8d4c15e4338689c3ac0695fe981eaf62b0c3f (patch)
tree7b97aed6c5c934b61ed899082351ee5399b1d9cc /Lib/test/test_re.py
parent847ed4afb57a4d5449e6a28de13dcb5d8f9840fb (diff)
downloadcpython-23b8d4c15e4338689c3ac0695fe981eaf62b0c3f.zip
cpython-23b8d4c15e4338689c3ac0695fe981eaf62b0c3f.tar.gz
cpython-23b8d4c15e4338689c3ac0695fe981eaf62b0c3f.tar.bz2
Tweak re_tests and test_re to differentiate between
groups that have no value and groups that are out of bounds.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r--Lib/test/test_re.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index cef14b0..33e9e54 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -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: