[Zope3-checkins] SVN: Zope3/trunk/src/zope/i18n/tests/test_formats.py Fixed another -N 2 test failure.

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Apr 9 09:48:10 EDT 2005


Log message for revision 29929:
  Fixed another -N 2 test failure.
  

Changed:
  U   Zope3/trunk/src/zope/i18n/tests/test_formats.py

-=-
Modified: Zope3/trunk/src/zope/i18n/tests/test_formats.py
===================================================================
--- Zope3/trunk/src/zope/i18n/tests/test_formats.py	2005-04-09 13:23:12 UTC (rev 29928)
+++ Zope3/trunk/src/zope/i18n/tests/test_formats.py	2005-04-09 13:48:10 UTC (rev 29929)
@@ -412,16 +412,18 @@
                          'Donnerstag')
 
         # Create custom calendar, which has Sunday as the first day of the
-        # week
+        # week. I am assigning a totally new dict here, since dicts are
+        # mutable and the value would be changed for the class and all its
+        # instances.
         calendar = LocaleCalendarStub()
-        calendar.week['firstDay'] = 7
+        calendar.week = {'firstDay': 7, 'minDays': 1}
         format = DateTimeFormat(calendar=calendar)
 
         self.assertEqual(format.format(date, "E"),
                          '5')
         self.assertEqual(format.format(date, "EE"),
                          '05')
-        
+
     def testFormatDayOfWeekInMonth(self):
         date = datetime.date(2003, 01, 02)
         self.assertEqual(self.format.format(date, "F"),



More information about the Zope3-Checkins mailing list