[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help fixing testcases with time-difference
From: |
Marius Bakke |
Subject: |
Re: Need help fixing testcases with time-difference |
Date: |
Thu, 18 Aug 2016 14:47:03 +0100 |
User-agent: |
Notmuch/0.22 (https://notmuchmail.org) Emacs/24.5.2 (x86_64-unknown-linux-gnu) |
Hartmut Goebel <address@hidden> writes:
> Hi,
>
> I'm currently working on django, the web application framework.
> Unfortunalty some tests fail. These are all testing time- and timezone
> calculations.
>
> Failures are like this:
>
> AssertionError: datetime.timedelta(0, 3600, 16) not less than
> datetime.timedelta(0, 2)
>
> which means the returned time difference is ca. 1 hour, but allowed are
> only 2 minutes. The testcase os this one
> https://github.com/django/django/blob/master/tests/file_storage/tests.py#L239>
>
> I already added tzdata to native-inputs, but this does not solve the issue.
I think you need to tell it where to find timezone data as well. Try
adding a phase like this:
(add-before 'check 'set-tzdir
(lambda* (#:key inputs #:allow-other-keys)
(setenv "TZDIR"
(string-append (assoc-ref inputs "tzdata")
"/share/zoneinfo"))
#t))
Cheers,
Marius
Re: Need help fixing testcases with time-difference,
Marius Bakke <=