|
|
Choosing A Webhost: |
CVS: Products/CMFCalendar/tests - test_Calendar.py:1.12.2.1: msg#00042web.zope.cmf.cvs
Update of /cvs-repository/Products/CMFCalendar/tests In directory cvs.zope.org:/tmp/cvs-serv30373 Modified Files: Tag: CMF-1_5-branch test_Calendar.py Log Message: Fixed unit test assuming a C locale. (Can be wrong when using test.py, which loads zope.conf) === Products/CMFCalendar/tests/test_Calendar.py 1.12 => 1.12.2.1 === --- Products/CMFCalendar/tests/test_Calendar.py:1.12 Thu Aug 12 11:07:38 2004 +++ Products/CMFCalendar/tests/test_Calendar.py Tue Nov 16 12:55:34 2004 @@ -101,7 +101,13 @@ self.assertEqual(self.Tool.getCalendarStates(), ('pending', 'published')) def test_Days(self): - assert self.Tool.getDays() == ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'] + import locale + old_locale = locale.getlocale(locale.LC_ALL)[0] + locale.setlocale(locale.LC_ALL, 'C') + try: + self.assertEqual(self.Tool.getDays(), ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']) + finally: + locale.setlocale(locale.LC_ALL, old_locale) def XXX_test_sessions(self):
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS: Products/CMFCalendar/tests - test_Calendar.py:1.4.22.8, Florent Guillaume |
|---|---|
| Next by Date: | CVS: Products/CMFCalendar/tests - test_Calendar.py:1.13, Florent Guillaume |
| Previous by Thread: | CVS: Products/CMFCalendar/tests - test_Calendar.py:1.4.22.8, Florent Guillaume |
| Next by Thread: | CVS: Products/CMFCalendar/tests - test_Calendar.py:1.13, Florent Guillaume |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |