From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Need help fixing testcases with time-difference Date: Thu, 18 Aug 2016 10:05:17 +0200 Message-ID: <57B56C3D.4050705@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baIKN-00012b-DN for guix-devel@gnu.org; Thu, 18 Aug 2016 04:05:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baIKJ-0007sR-5m for guix-devel@gnu.org; Thu, 18 Aug 2016 04:05:26 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:41302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baIKI-0007s0-Rp for guix-devel@gnu.org; Thu, 18 Aug 2016 04:05:23 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3sFJYX0pZvz3hndM for ; Thu, 18 Aug 2016 10:05:19 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3sFJYW6pn6zvkVD for ; Thu, 18 Aug 2016 10:05:19 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 3rxGTjpqwMn2 for ; Thu, 18 Aug 2016 10:05:18 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-149-177.dynamic.mnet-online.de [188.174.149.177]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Thu, 18 Aug 2016 10:05:18 +0200 (CEST) Received: from [192.168.110.2] (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 0C55460318 for ; Thu, 18 Aug 2016 10:05:18 +0200 (CEST) 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: guix-devel 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 issu= e. Any hints? Below please find the stripped down package definition. (define-module (gnu packages django) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system python) #:use-module (gnu packages base) #:use-module (gnu packages python)) (define-public python-django (package (name "python-django") (version "1.10") (source (origin (method url-fetch) (uri (pypi-uri "Django" version)) (sha256 (base32 "01bh5yra6zyxcpqacahbwfbn0y4ivw07j2jsw3crvmjzivb6if26")))= ) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'check (lambda* _ (let* ((old-path (getenv "PYTHONPATH"))) (chdir "tests") (setenv "PYTHONPATH" (string-append ".." (if old-path (string-append ":" old-path)= ))) (zero? (system* "python" "runtests.py")) )))))) (inputs ; Django uses pkg_resources (which is part of setuptools) to ; locate templates at run-time. `(("python-setuptools" ,python-setuptools))) (native-inputs `(("tzdata", tzdata) ("python-docutils" ,python-docutils) ("python-jinja2" ,python-jinja2) ; >=3D 2.7 ("python-numpy" ,python-numpy) ("python-pillow" ,python-pillow) ("python-pyyaml" ,python-pyyaml) ("python-pytz" ,python-pytz) ("python-sqlparse" ,python-sqlparse) ("python-tblib" ,python-tblib) ;; for Python 2: enum34 and mock ("python-enum34" ,python-enum34) ("python-mock" ,python-mock) )) (home-page "http://www.djangoproject.com/") (synopsis "High-level Python Web framework") (description "") (license license:bsd-3))) --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |