[Zope-Checkins]
SVN: Zope/trunk/lib/python/DateTime/tests/testDateTime.py
Fixed unit test.
Florent Guillaume
fg at nuxeo.com
Wed Jun 1 06:28:41 EDT 2005
Log message for revision 30589:
Fixed unit test.
Changed:
U Zope/trunk/lib/python/DateTime/tests/testDateTime.py
-=-
Modified: Zope/trunk/lib/python/DateTime/tests/testDateTime.py
===================================================================
--- Zope/trunk/lib/python/DateTime/tests/testDateTime.py 2005-06-01 10:27:10 UTC (rev 30588)
+++ Zope/trunk/lib/python/DateTime/tests/testDateTime.py 2005-06-01 10:28:40 UTC (rev 30589)
@@ -375,8 +375,8 @@
def testStrftimeUnicode(self):
dt = DateTime('2002-05-02T08:00:00+00:00')
- self.assertEqual(dt.strftime(u'Le %d/%m/%Y \xe0 %Hh%M'),
- u'Le 02/05/2002 \xe0 10h00')
+ ok = dt.strftime('Le %d/%m/%Y a %Hh%M').replace('a', u'\xe0')
+ self.assertEqual(dt.strftime(u'Le %d/%m/%Y \xe0 %Hh%M'), ok)
def test_suite():
return unittest.makeSuite(DateTimeTests)
More information about the Zope-Checkins
mailing list