dogtail r396 - in trunk: . dogtail



Author: zcerza
Date: Fri Aug  8 18:48:34 2008
New Revision: 396
URL: http://svn.gnome.org/viewvc/dogtail?rev=396&view=rev

Log:
* dogtail/tc.py: Eliminate double slashes in TCImage.diff. Also remove
do-nothing TCImage.__init__().


Modified:
   trunk/ChangeLog
   trunk/dogtail/tc.py

Modified: trunk/dogtail/tc.py
==============================================================================
--- trunk/dogtail/tc.py	(original)
+++ trunk/dogtail/tc.py	Fri Aug  8 18:48:34 2008
@@ -81,10 +81,6 @@
     """
     Image Test Case Class.
     """
-
-    def __init__(self):
-        TC.__init__(self)
-
     def compare(self, label, baseline, undertest):
         for _file in (baseline, undertest):
             if type(_file) is not unicode and type(_file) is not str:
@@ -92,7 +88,8 @@
         self.label = label.strip()
         self.baseline = baseline.strip()
         self.undertest = undertest.strip()
-        self.diff = os.path.sep.join((config.scratchDir, 'diff.png'))
+        self.diff = os.path.normpath(
+                os.path.sep.join((config.scratchDir, 'diff.png')))
 
         self.baseImage = Image.open(self.baseline)
         self.testImage = Image.open(self.undertest)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]