diff Lib/test/test_re.py @ 5792:dffabc620e4e legacy-trunk

Tweak re_tests and test_re to differentiate between groups that have no value and groups that are out of bounds.
author Guido van Rossum <guido@python.org>
date Tue, 15 Jul 1997 15:49:52 +0000
parents 2b7372ecd507
children 73cf58261b82
line wrap: on
line diff
--- a/Lib/test/test_re.py	Tue Jul 15 15:40:57 1997 +0000
+++ b/Lib/test/test_re.py	Tue Jul 15 15:49:52 1997 +0000
@@ -48,7 +48,7 @@
 			# 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: