commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r8321 - in trunk/gnue-common: tests/drivers unittest


From: reinhard
Subject: [gnue] r8321 - in trunk/gnue-common: tests/drivers unittest
Date: Mon, 3 Apr 2006 18:24:08 -0500 (CDT)

Author: reinhard
Date: 2006-03-31 12:07:08 -0600 (Fri, 31 Mar 2006)
New Revision: 8321

Modified:
   trunk/gnue-common/tests/drivers/checkem.py
   trunk/gnue-common/unittest/datasource.py
Log:
Removed translation marks from test code (which isn't included in
gnue-common.po anyway).


Modified: trunk/gnue-common/tests/drivers/checkem.py
===================================================================
--- trunk/gnue-common/tests/drivers/checkem.py  2006-03-31 18:00:18 UTC (rev 
8320)
+++ trunk/gnue-common/tests/drivers/checkem.py  2006-03-31 18:07:08 UTC (rev 
8321)
@@ -32,7 +32,7 @@
 
     self.addCommandOption ('connection', 'c', argument='connectionname',
         default = "gnue",
-        help = _("Use the connection <connectionname> for creating the 
schema"))
+        help = "Use the connection <connectionname> for creating the schema")
 
     GClientApp.__init__ (self, connections, 'common', {})
 

Modified: trunk/gnue-common/unittest/datasource.py
===================================================================
--- trunk/gnue-common/unittest/datasource.py    2006-03-31 18:00:18 UTC (rev 
8320)
+++ trunk/gnue-common/unittest/datasource.py    2006-03-31 18:07:08 UTC (rev 
8321)
@@ -24,8 +24,7 @@
 import unittest, os
 
 from gnue.common.datasources import GDataSource, GConnections, GLoginHandler
-# import GBaseApp to setup i18n
-from gnue.common.apps import GConfig,GBaseApp
+from gnue.common.apps import GConfig
 from gnue import paths
 
 
@@ -45,14 +44,14 @@
     try:
         connections = GConnections.GConnections(connections_file)
     except GConnections.InvalidFormatError, msg:
-        raise _('Unable to load the connections definition file.\n') \
-              + _('\n   The connections file is in an invalid format. ') \
+        raise 'Unable to load the connections definition file.\n' \
+              + '\n   The connections file is in an invalid format. ' \
               + '\n   %s'  % msg
     except IOError:
-       raise _('Unable to load the connections definition file.\n') \
-            + _('\n   The connections file specified either does ') \
-            + _('\n   not exist or is not readable by your account.\n') \
-            + _('\n   Location: "%s"') % connections_file
+       raise 'Unable to load the connections definition file.\n' \
+            + '\n   The connections file specified either does ' \
+            + '\n   not exist or is not readable by your account.\n' \
+            + '\n   Location: "%s"' % connections_file
 
    
     connections.setLoginHandler ( \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]