Comment 3 for bug 374695

Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

Taking a closer look to the code I had an idea.

        england = EnglandTimeZone()

        self.weather.set_location('Bath,England')
        self.weather.refresh()
        forecasts = self.weather.get_forecasts()
        today = forecasts[0]
        day = datetime.now(england).strftime('%a')
        self.assertEqual(str(today["Day"]), day)

The error message is : AssertionError: 'Sun' != 'Mon'

So I think there's something wrong with EnglandTimeZone wich may give from time to time a result which is not perfectly accurate.