[Python-checkins] CVS: python/dist/src/Lib/test test_sre.py,1.4,1.5

Fredrik Lundh python-dev@python.org
Tue, 1 Aug 2000 06:16:58 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv14481/Lib/test

Modified Files:
	test_sre.py 
Log Message:


-- SRE 0.9.8: now that the bug is fixed, I might as well enable
   the test again...
   

Index: test_sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sre.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** test_sre.py	2000/08/01 13:01:34	1.4
--- test_sre.py	2000/08/01 13:16:55	1.5
***************
*** 153,160 ****
      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") == ['', 'a', '', '', 'c']
  except AssertionError:
--- 153,158 ----
      assert sre.split("(:)*", ":a:b::c") == ['', ':', 'a', ':', 'b', ':', 'c']
      assert sre.split("([b:]+)", ":a:b::c") == ['', ':', 'a', ':b::', '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: