gnome-desktop-testing r5 - trunk/gedit



Author: apulido
Date: Fri Feb 13 07:54:37 2009
New Revision: 5
URL: http://svn.gnome.org/viewvc/gnome-desktop-testing?rev=5&view=rev

Log:

Fixed error with Gedit tests. It was giving false positives.



Modified:
   trunk/gedit/gedit_chains.py

Modified: trunk/gedit/gedit_chains.py
==============================================================================
--- trunk/gedit/gedit_chains.py	(original)
+++ trunk/gedit/gedit_chains.py	Fri Feb 13 07:54:37 2009
@@ -6,7 +6,7 @@
 from time import time, gmtime, strftime
 
 from desktoptesting.gnome import GEdit
-from desktoptesting.check import FileComparison
+from desktoptesting.check import FileComparison, FAIL
 
 try:
 
@@ -33,11 +33,11 @@
 
     ldtp.log (str(elapsed), 'time')
     
-    if check == desktoptesting.check.FAIL:
+    if check == FAIL:
         ldtp.log ('Files differ.', 'cause')
         ldtp.log ('Files differ.', 'error')
 
-except ldtp.LdtpExecutionError, msg:
+except ldtp.LdtpExecutionError:
     raise
 
 



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