[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup/tests - testStarter.py:1.1.2.5

Tim Peters tim.one at comcast.net
Fri Oct 3 17:53:19 EDT 2003


Update of /cvs-repository/Zope/lib/python/Zope/Startup/tests
In directory cvs.zope.org:/tmp/cvs-serv20197/lib/python/Zope/Startup/tests

Modified Files:
      Tag: Zope-2_7-branch
	testStarter.py 
Log Message:
testSetupLocale():  This can't work on Windows, so just return in that
case.


=== Zope/lib/python/Zope/Startup/tests/testStarter.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/Zope/Startup/tests/testStarter.py:1.1.2.4	Fri Oct  3 17:39:23 2003
+++ Zope/lib/python/Zope/Startup/tests/testStarter.py	Fri Oct  3 17:53:19 2003
@@ -81,7 +81,13 @@
 
     def testSetupLocale(self):
         # XXX this almost certainly won't work on all systems
+        import sys
         import locale
+
+        if sys.platform in ('win32',):
+            # fr_FR is unknown on Windows.
+            return
+
         try:
             conf = self.load_config_text("""
                 instancehome <<INSTANCE_HOME>>




More information about the Zope-Checkins mailing list