[Checkins] SVN: z3c.image/trunk/src/z3c/image/ fixed tests on win

Bernd Dorn bernd.dorn at fhv.at
Thu Sep 14 11:46:15 EDT 2006


Log message for revision 70176:
  fixed tests on win

Changed:
  U   z3c.image/trunk/src/z3c/image/proc/BROWSER.txt
  U   z3c.image/trunk/src/z3c/image/testing/__init__.py

-=-
Modified: z3c.image/trunk/src/z3c/image/proc/BROWSER.txt
===================================================================
--- z3c.image/trunk/src/z3c/image/proc/BROWSER.txt	2006-09-14 15:35:25 UTC (rev 70175)
+++ z3c.image/trunk/src/z3c/image/proc/BROWSER.txt	2006-09-14 15:46:15 UTC (rev 70176)
@@ -15,7 +15,7 @@
    >>> link = browser.getLink('Image')
    >>> link.click()
    >>> dataCtrl = browser.getControl('Data')
-   >>> dataCtrl.add_file(file(imagePath), 'image/jpeg', 'flower.jpg')
+   >>> dataCtrl.add_file(file(imagePath, 'rb'), 'image/jpeg', 'flower.jpg')
    >>> browser.getControl('Add').click()
 
 Let us upen the standard view of the image

Modified: z3c.image/trunk/src/z3c/image/testing/__init__.py
===================================================================
--- z3c.image/trunk/src/z3c/image/testing/__init__.py	2006-09-14 15:35:25 UTC (rev 70175)
+++ z3c.image/trunk/src/z3c/image/testing/__init__.py	2006-09-14 15:46:15 UTC (rev 70176)
@@ -7,4 +7,4 @@
 def getTestImage(name):
     """returns a zope image with the given name from this directory"""
     path = os.path.join(dataDir,name)
-    return Image(file(path))
+    return Image(file(path, 'rb').read())



More information about the Checkins mailing list