From 53d93adc46c73e6fdcd6db2d16f0136eadba9839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 19 Apr 2003 08:37:24 +0000 Subject: Patch #681152: Support escaped Unicode characters in classes. Fixes #612074. Will backport to 2.2. --- Lib/test/test_sre.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/test/test_sre.py') diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py index e4eb08ddd7..db871620fa 100644 --- a/Lib/test/test_sre.py +++ b/Lib/test/test_sre.py @@ -96,6 +96,10 @@ test(r"""sre.match('.*?cd', 20000*'abc'+'de').end(0)""", 60001) # non-simple '*?' still recurses and hits the recursion limit test(r"""sre.search('(a|b)*?c', 10000*'ab'+'cd').end(0)""", None, RuntimeError) +# bug 612074 +pat=u"["+sre.escape(u"\u2039")+u"]" +test(r"""sre.compile(pat) and 1""", 1, None) + if verbose: print 'Running tests on sre.sub' -- cgit v1.2.1