pytz-appengine icon indicating copy to clipboard operation
pytz-appengine copied to clipboard

Fail in nosetests

Open mdxs opened this issue 11 years ago • 4 comments

When running "nosetests --rednose --logging-level=INFO" (after: clone, "./build.py all", "cd pytz"), I get the following FAIL message:

FAIL: no_testCreateLocaltime (test_tzinfo.LocalTestCase)

   Traceback (most recent call last):
    tests/test_tzinfo.py line 696 in no_testCreateLocaltime
      '2004-10-31 02:00:00 CET+0100'
   AssertionError: '2004-10-31 02:00:00 AMT+0020' != '2004-10-31 02:00:00 CET+0100'

Is this specific to the pytz-appengine approach, or might it belong to pytz itself?

mdxs avatar Nov 18 '13 16:11 mdxs

That looks to be an upstream problem.

Are you in timezone AMT by any chance?

brianmhunt avatar Nov 18 '13 16:11 brianmhunt

I'm in "Europe/Amsterdam"

mdxs avatar Nov 18 '13 16:11 mdxs

In my virtual machine, changed the local timezone to "Europe/Brussels", rebooted, and tried again: same result.

mdxs avatar Nov 18 '13 16:11 mdxs

Thanks.

I'm confident this is an upstream problem. The comment in the pytz test code is:

    def no_testCreateLocaltime(self):
        # It would be nice if this worked, but it doesn't.

Seems as if we are stuck with it. IMHO upstream ought to apply a skip decorator like @unittest.skip("Wishful thinking :)"). Or fix the underlying issue.

Will leave this open until we see an upstream fix merged.

brianmhunt avatar Nov 18 '13 18:11 brianmhunt