summaryrefslogtreecommitdiffstats
path: root/Lib/test/re_tests.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-12-09 16:13:15 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-12-09 16:13:15 (GMT)
commit82b230732fab6dc3b8d945feb38bd99712a501fc (patch)
tree5a5531657fac37d69ceb8f51648032fa1386ec29 /Lib/test/re_tests.py
parented69aeedb9031d632c169c8c570777426842dce0 (diff)
downloadcpython-82b230732fab6dc3b8d945feb38bd99712a501fc.zip
cpython-82b230732fab6dc3b8d945feb38bd99712a501fc.tar.gz
cpython-82b230732fab6dc3b8d945feb38bd99712a501fc.tar.bz2
bug #133283, #477728, #483789, #490573
backed out of broken minimal repeat patch from July also fixed a couple of minor potential resource leaks in pattern_subx (Guido had already fixed the big one)
Diffstat (limited to 'Lib/test/re_tests.py')
-rwxr-xr-xLib/test/re_tests.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/test/re_tests.py b/Lib/test/re_tests.py
index d69b324..953e4fd 100755
--- a/Lib/test/re_tests.py
+++ b/Lib/test/re_tests.py
@@ -638,8 +638,14 @@ xyzabc
(r'(?i)[m]+', 'MMM', SUCCEED, 'found', 'MMM'),
# bug 130748: ^* should be an error (nothing to repeat)
(r'^*', '', SYNTAX_ERROR),
- # bug 133283: minimizing repeat bug
- (r'"(?:\\"|[^"])*?"', r'"\""', SUCCEED, 'found', r'"\"'),
+ # bug 133283: minimizing repeat problem
+ (r'"(?:\\"|[^"])*?"', r'"\""', SUCCEED, 'found', r'"\""'),
+ # bug 477728: minimizing repeat problem
+ (r'^.*?$', 'one\ntwo\nthree\n', FAIL),
+ # bug 483789: minimizing repeat problem
+ (r'a[^>]*?b', 'a>b', FAIL),
+ # bug 490573: minimizing repeat problem
+ (r'^a*?$', 'foo', FAIL),
]
try: