commit | 19f977ba402acb44e7fcae8a7fe2dc37e3e36eca | [log] [tgz] |
---|---|---|
author | Fredrik Lundh <fredrik@pythonware.com> | Sun Sep 24 14:46:23 2000 +0000 |
committer | Fredrik Lundh <fredrik@pythonware.com> | Sun Sep 24 14:46:23 2000 +0000 |
tree | 2290ed4e98452381416d553eb612727525b7b2da | |
parent | 96753b348219ffc6c24eeb4316d6ba203ac09ad5 [diff] [blame] |
- don't hang if group id is followed by whitespace (closes bug #114660)
diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py index d3e9dbe..373efa0 100644 --- a/Lib/test/test_sre.py +++ b/Lib/test/test_sre.py
@@ -114,6 +114,9 @@ test(r"""sre.sub(r'a', 'b', 'aaaaa')""", 'bbbbb') test(r"""sre.sub(r'a', 'b', 'aaaaa', 1)""", 'baaaa') +# bug 114660 +test(r"""sre.sub(r'(\S)\s+(\S)', r'\1 \2', 'hello there')""", 'hello there') + if verbose: print 'Running tests on symbolic references'