From: Fredrik Lundh Date: Tue, 1 Aug 2000 13:16:55 +0000 (+0000) Subject: -- SRE 0.9.8: now that the bug is fixed, I might as well enable X-Git-Tag: v2.0b1~647 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=067bebfe2da916d1e681db100be4c9a99ff36694;p=thirdparty%2FPython%2Fcpython.git -- SRE 0.9.8: now that the bug is fixed, I might as well enable the test again... --- diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py index 52e50217ad53..342c33d47199 100644 --- a/Lib/test/test_sre.py +++ b/Lib/test/test_sre.py @@ -152,10 +152,8 @@ try: assert sre.split("(?::*)", ":a:b::c") == ['', 'a', 'b', 'c'] assert sre.split("(:)*", ":a:b::c") == ['', ':', 'a', ':', 'b', ':', 'c'] assert sre.split("([b:]+)", ":a:b::c") == ['', ':', 'a', ':b::', 'c'] -## print sre.split("(b)|(:+)", ":a:b::c") -## print ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c'] -## assert sre.split("(b)|(:+)", ":a:b::c") == \ -## ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c'] + assert sre.split("(b)|(:+)", ":a:b::c") == \ + ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c'] assert sre.split("(?:b)|(?::+)", ":a:b::c") == ['', 'a', '', '', 'c'] except AssertionError: raise TestFailed, "sre.split"