jenkins-bot has submitted this change and it was merged.
Change subject: (bug 63667) Retrieve timezone from site. ......................................................................
(bug 63667) Retrieve timezone from site.
Change-Id: If1f0e6bc2d2dab2721af209335045a4f1ba6f996 --- M tests/timestripper_tests.py 1 file changed, 4 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/timestripper_tests.py b/tests/timestripper_tests.py index 2197215..975fa10 100644 --- a/tests/timestripper_tests.py +++ b/tests/timestripper_tests.py @@ -46,15 +46,16 @@ None) )
- @unittest.expectedFailure def test_timestripper(self): """Test that correct date is matched"""
txtMatch = u'3 février 2010 à 19:48 (CET) 7 février 2010 à 19:48 (CET)' txtNoMatch = u'3 March 2010 19:48 (CET) 7 March 2010 19:48 (CET)'
- res = datetime.datetime(2010, 2, 7, 19, 48, - tzinfo=tzoneFixedOffset(60, 'Europe/Paris')) + tzone = tzoneFixedOffset(self.ts.site.siteinfo['timeoffset'], + self.ts.site.siteinfo['timezone']) + + res = datetime.datetime(2010, 2, 7, 19, 48, tzinfo=tzone)
self.assertEqual(self.ts.timestripper(txtMatch), res) self.assertEqual(self.ts.timestripper(txtNoMatch), None)