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

Fredrik Lundh effbot@users.sourceforge.net
Thu, 22 Mar 2001 15:48:30 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv24245/lib/test

Modified Files:
	test_sre.py 
Log Message:


SRE 2.1b2: increase the chances that the sre test works on other
machines...


Index: test_sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sre.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** test_sre.py	2001/03/22 15:50:10	1.23
--- test_sre.py	2001/03/22 23:48:28	1.24
***************
*** 244,253 ****
  # Try nasty case that overflows the straightforward recursive
  # implementation of repeated groups.
! test(r"""sre.match(r'(x)*', 50000*'x').span()""",
!      (0, 50000), RuntimeError)
! test(r"""sre.match(r'(x)*y', 50000*'x'+'y').span()""",
!      (0, 50001), RuntimeError)
! test(r"""sre.match(r'(x)*?y', 50000*'x'+'y').span()""",
!      (0, 50001)) # this works in 2.1
  
  from re_tests import *
--- 244,250 ----
  # Try nasty case that overflows the straightforward recursive
  # implementation of repeated groups.
! test("sre.match('(x)*', 50000*'x').span()", (0, 50000), RuntimeError)
! test("sre.match(r'(x)*y', 50000*'x'+'y').span()", (0, 50001), RuntimeError)
! test("sre.match(r'(x)*?y', 50000*'x'+'y').span()", (0, 50001), RuntimeError)
  
  from re_tests import *