unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* staging: django fails to build
@ 2016-12-29  1:21 Leo Famulari
  2016-12-29 13:58 ` Hartmut Goebel
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2016-12-29  1:21 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 5498 bytes --]

Django is failing its test suite on the staging branch:

https://hydra.gnu.org/job/gnu/staging/python-django-1.10.3.x86_64-linux
https://hydra.gnu.org/job/gnu/staging/python-django-1.10.3.i686-linux

I can reproduce this on my own machine, but I'm not sure what the
problem is.

Does anyone have any ideas?

Here are the failing tests:

======================================================================
FAIL: test_timeuntil08 (template_tests.filter_tests.test_timeuntil.TimeuntilTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/tmp/guix-build-python-django-1.10.3.drv-0/Django-1.10.3/django/test/utils.py", line 205, in inner
    return func(*args, **kwargs)
  File "/tmp/guix-build-python-django-1.10.3.drv-0/Django-1.10.3/tests/template_tests/utils.py", line 61, in inner
    func(self)
  File "/tmp/guix-build-python-django-1.10.3.drv-0/Django-1.10.3/tests/template_tests/filter_tests/test_timeuntil.py", line 66, in test_timeuntil08
    self.assertEqual(output, '1\xa0week')
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 820, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 813, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: '1\xa0week, 1\xa0day' != '1\xa0week'

======================================================================
FAIL: test_timeuntil09 (template_tests.filter_tests.test_timeuntil.TimeuntilTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/tmp/guix-build-python-django-1.10.3.drv-0/Django-1.10.3/django/test/utils.py", line 205, in inner
    return func(*args, **kwargs)
  File "/tmp/guix-build-python-django-1.10.3.drv-0/Django-1.10.3/tests/template_tests/utils.py", line 61, in inner
    func(self)
  File "/tmp/guix-build-python-django-1.10.3.drv-0/Django-1.10.3/tests/template_tests/filter_tests/test_timeuntil.py", line 71, in test_timeuntil09
    self.assertEqual(output, '1\xa0week')
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 820, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 813, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: '1\xa0week, 1\xa0day' != '1\xa0week'

======================================================================
FAIL: test_both_date_objects (utils_tests.test_timesince.TimesinceTests)
Timesince should work with both date objects (#9672)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/tmp/guix-build-python-django-1.10.3.drv-0/Django-1.10.3/tests/utils_tests/test_timesince.py", line 106, in test_both_date_objects
    self.assertEqual(timeuntil(today + self.oneweek, today), '1\xa0week')
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 820, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 1193, in assertMultiLineEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/lib/python3.5/unittest/case.py", line 665, in fail
    raise self.failureException(msg)
AssertionError: '1\xa0week, 1\xa0day' != '1\xa0week'
- 1??week, 1 day
+ 1 week


----------------------------------------------------------------------
Ran 11263 tests in 107.254s

FAILED (failures=3, skipped=1122, expected failures=4)
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
phase `check' failed after 137.8 seconds

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: staging: django fails to build
  2016-12-29  1:21 staging: django fails to build Leo Famulari
@ 2016-12-29 13:58 ` Hartmut Goebel
  2017-01-02 20:49   ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Hartmut Goebel @ 2016-12-29 13:58 UTC (permalink / raw)
  To: Leo Famulari, guix-devel

Am 29.12.2016 um 02:21 schrieb Leo Famulari:
> Django is failing its test suite on the staging branch:
>
I can reproduce this here, too.

It's a subtle bug in Django related to leap years :-( The test suite
only fails in the last week of a leap year. So the test-suite will work
again in three days.

I filed a bug report at Djnago:
<https://code.djangoproject.com/ticket/27662>

-- 
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] 3+ messages in thread

* Re: staging: django fails to build
  2016-12-29 13:58 ` Hartmut Goebel
@ 2017-01-02 20:49   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2017-01-02 20:49 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> Am 29.12.2016 um 02:21 schrieb Leo Famulari:
>> Django is failing its test suite on the staging branch:
>>
> I can reproduce this here, too.
>
> It's a subtle bug in Django related to leap years :-( The test suite
> only fails in the last week of a leap year. So the test-suite will work
> again in three days.

Funny!

I’ve restarted builds on i686 and x86_64, normally they should succeed
now.  :-)

  https://hydra.gnu.org/build/1740965
  https://hydra.gnu.org/build/1740732

> I filed a bug report at Djnago:
> <https://code.djangoproject.com/ticket/27662>

We can apply a patch whenever upstream provides one.

Thanks for finding out about this problem!

Ludo’.

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

end of thread, other threads:[~2017-01-02 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-29  1:21 staging: django fails to build Leo Famulari
2016-12-29 13:58 ` Hartmut Goebel
2017-01-02 20:49   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).