From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Need help fixing testcases with time-difference Date: Thu, 18 Aug 2016 14:47:03 +0100 Message-ID: <8760qyyyso.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> References: <57B56C3D.4050705@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baNfF-0000WC-Bt for guix-devel@gnu.org; Thu, 18 Aug 2016 09:47:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baNfC-00035p-7Y for guix-devel@gnu.org; Thu, 18 Aug 2016 09:47:21 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baNf9-000355-Kz for guix-devel@gnu.org; Thu, 18 Aug 2016 09:47:18 -0400 In-Reply-To: <57B56C3D.4050705@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel , guix-devel 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.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