[Python-checkins] CVS: python/dist/src/Lib/test/output test_sre,1.3,1.4

Fredrik Lundh python-dev@python.org
Fri, 30 Jun 2000 06:55:17 -0700


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

Modified Files:
	test_sre 
Log Message:

the mad patcher strikes again:

-- added pickling support (only works if sre is imported)

-- fixed wordsize problems in engine
   (instead of casting literals down to the character size,
   cast characters up to the literal size (same as the code
   word size).  this prevents false hits when you're matching
   a unicode pattern against an 8-bit string. (unfortunately,
   this broke another test, but I think the test should be
   changed in this case; more on that on python-dev)

-- added sre.purge function
   (unofficial, clears the cache)

Index: test_sre
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_sre,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** test_sre	2000/06/30 10:41:31	1.3
--- test_sre	2000/06/30 13:55:15	1.4
***************
*** 1,5 ****
  test_sre
! test_support -- test failed re module pickle
! test_support -- test failed re module cPickle
  === Failed incorrectly ('^(.+)?B', 'AB', 0, 'g1', 'A')
  === Failed incorrectly ('(a+)+\\1', 'aa', 0, 'found+"-"+g1', 'aa-a')
--- 1,4 ----
  test_sre
! === Failed incorrectly ('\\x00ffffffffffffff', '\377', 0, 'found', '\377')
  === Failed incorrectly ('^(.+)?B', 'AB', 0, 'g1', 'A')
  === Failed incorrectly ('(a+)+\\1', 'aa', 0, 'found+"-"+g1', 'aa-a')