[Zope3-checkins] SVN: Zope3/branches/3.3/src/zope/testbrowser/tests.py port bug fix revision 68135:

Benji York benji at zope.com
Mon May 15 09:59:50 EDT 2006


Log message for revision 68136:
  port bug fix revision 68135:
    make the zope.testbrowser file upload tests understand the full range of
    boundaries mimetools can generate
  

Changed:
  U   Zope3/branches/3.3/src/zope/testbrowser/tests.py

-=-
Modified: Zope3/branches/3.3/src/zope/testbrowser/tests.py
===================================================================
--- Zope3/branches/3.3/src/zope/testbrowser/tests.py	2006-05-15 13:57:21 UTC (rev 68135)
+++ Zope3/branches/3.3/src/zope/testbrowser/tests.py	2006-05-15 13:59:50 UTC (rev 68136)
@@ -220,7 +220,8 @@
     """
 
 checker = renormalizing.RENormalizing([
-    (re.compile(r'(--|boundary=)\d+\.\d+\.\d+\.\S+'), '-'*30),
+    (re.compile(r'^--\S+\.\S+\.\S+', re.M), '-'*30),
+    (re.compile(r'boundary=\S+\.\S+\.\S+'), 'boundary='+'-'*30),
     (re.compile('User-agent:\s+\S+'), 'User-agent: XXX'),
     (re.compile('Content-length:\s+\S+'), 'Content-length: 123'),
     ])



More information about the Zope3-Checkins mailing list