[Zope-Checkins] CVS: Packages/Zope/Startup/tests -
testStarter.py:1.8
Evan Simpson
evan at 4-am.com
Thu Dec 18 13:04:16 EST 2003
Update of /cvs-repository/Packages/Zope/Startup/tests
In directory cvs.zope.org:/tmp/cvs-serv23436/lib/python/Zope/Startup/tests
Modified Files:
testStarter.py
Log Message:
Eliminate some test annoyances.
=== Packages/Zope/Startup/tests/testStarter.py 1.7 => 1.8 ===
--- Packages/Zope/Startup/tests/testStarter.py:1.7 Sun Nov 30 11:38:15 2003
+++ Packages/Zope/Startup/tests/testStarter.py Thu Dec 18 13:04:15 2003
@@ -88,12 +88,19 @@
# XXX this almost certainly won't work on all systems
import locale
try:
- conf = self.load_config_text("locale en_GB")
+ try:
+ conf = self.load_config_text("locale en_GB")
+ except ZConfig.DataConversionError, e:
+ # Skip this test if we don't have support.
+ if e.message.startswith(
+ 'The specified locale "en_GB" is not supported'):
+ return
+ raise
starter = ZopeStarter(conf)
starter.setupLocale()
self.assertEqual(locale.getlocale(), ['en_GB', 'ISO8859-1'])
finally:
- # resest to system-defined locale
+ # reset to system-defined locale
locale.setlocale(locale.LC_ALL, '')
def testSetupStartupHandler(self):
More information about the Zope-Checkins
mailing list