Re: Need help fixing testcases with time-difference

2016-08-18 Thread Hartmut Goebel
Hi, > 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 "tzda

Re: Need help fixing testcases with time-difference

2016-08-18 Thread Marius Bakke
Hartmut Goebel 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.timede

Re: Need help fixing testcases with time-difference

2016-08-18 Thread Vincent Legoll
Probably a long shot, but... Maybe you can try the following: change line 158 of tests/file_storage/tests.py: now_in_algiers = timezone.make_aware(datetime.now()) into now_in_algiers = timezone.make_aware(datetime.now(), is_dst=False) and see if this changes the outcome... -- Vincent Legoll

Re: Need help fixing testcases with time-difference

2016-08-18 Thread Vincent Legoll
>> I've not looked too hard, but that test seems to use the storage to check >> access >> time on a file, could it be that your FS use the "noatime" option or >> does not produce correctly updated file access timestamps ? > > Good spot! But my filesystems are mounted with "relatime", so this > sho

Re: Need help fixing testcases with time-difference

2016-08-18 Thread Hartmut Goebel
Am 18.08.2016 um 13:10 schrieb Vincent Legoll: > I've not looked too hard, but that test seems to use the storage to check > access > time on a file, could it be that your FS use the "noatime" option or > does not produce > correctly updated file access timestamps ? Good spot! But my filesystems

Re: Need help fixing testcases with time-difference

2016-08-18 Thread Vincent Legoll
>> That looks like a Daylight Saving Time mismatch, could that be possible ? > > That's been my first thought, too. But the test is using timezone I've not looked too hard, but that test seems to use the storage to check access time on a file, could it be that your FS use the "noatime" option or d

Re: Need help fixing testcases with time-difference

2016-08-18 Thread Hartmut Goebel
Am 18.08.2016 um 10:59 schrieb Vincent Legoll: > That looks like a Daylight Saving Time mismatch, could that be possible ? That's been my first thought, too. But the test is using timezone "Africa/Algiers" (see ) which

Re: Need help fixing testcases with time-difference

2016-08-18 Thread Vincent Legoll
Hello, On Thu, Aug 18, 2016 at 10:05 AM, Hartmut Goebel wrote: > 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, 3

Need help fixing testcases with time-difference

2016-08-18 Thread Hartmut Goebel
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 d