[Zope-Checkins] SVN: Zope/trunk/lib/python/Zope2/Startup/tests/testStarter.py I happen to have a system here where the locale test actually runs, and

Stefan H. Holek stefan at epy.co.at
Thu Mar 10 14:46:48 EST 2005


Log message for revision 29434:
  I happen to have a system here where the locale test actually runs, and
  getlocale() returns a tuple here. The original test author obviously saw a
  list returned so I'll explicitly tuplify to be on the safe side...
  

Changed:
  U   Zope/trunk/lib/python/Zope2/Startup/tests/testStarter.py

-=-
Modified: Zope/trunk/lib/python/Zope2/Startup/tests/testStarter.py
===================================================================
--- Zope/trunk/lib/python/Zope2/Startup/tests/testStarter.py	2005-03-10 18:53:23 UTC (rev 29433)
+++ Zope/trunk/lib/python/Zope2/Startup/tests/testStarter.py	2005-03-10 19:46:46 UTC (rev 29434)
@@ -108,7 +108,7 @@
                 raise
             starter = self.get_starter(conf)
             starter.setupLocale()
-            self.assertEqual(locale.getlocale(), ['en_GB', 'ISO8859-1'])
+            self.assertEqual(tuple(locale.getlocale()), ('en_GB', 'ISO8859-1'))
         finally:
             # reset to system-defined locale
             locale.setlocale(locale.LC_ALL, '')



More information about the Zope-Checkins mailing list