all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Need help fixing testcases with time-difference
@ 2016-08-18  8:05 Hartmut Goebel
  2016-08-18  8:59 ` Vincent Legoll
  2016-08-18 13:47 ` Marius Bakke
  0 siblings, 2 replies; 9+ messages in thread
From: Hartmut Goebel @ 2016-08-18  8:05 UTC (permalink / raw)
  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 issue.

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) ; >= 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)))


-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-08-18 15:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-18  8:05 Need help fixing testcases with time-difference Hartmut Goebel
2016-08-18  8:59 ` Vincent Legoll
2016-08-18  9:50   ` Hartmut Goebel
2016-08-18 11:10     ` Vincent Legoll
2016-08-18 12:14       ` Hartmut Goebel
2016-08-18 13:04         ` Vincent Legoll
2016-08-18 13:27           ` Vincent Legoll
2016-08-18 13:47 ` Marius Bakke
2016-08-18 15:17   ` Hartmut Goebel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.