#16991: Humanize tests fail randomly
----------------------------------+------------------------------------
     Reporter:  akaariai          |                    Owner:  nobody
         Type:  Bug               |                   Status:  new
    Component:  contrib.humanize  |                  Version:  1.3
     Severity:  Normal            |               Resolution:
     Keywords:  humanize test     |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Changes (by julien):

 * needs_better_patch:   => 0
 * stage:  Unreviewed => Accepted
 * component:  Testing framework => contrib.humanize
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 I can imagine this problem happen on slow machines since the
 `datetime.now()` function is effectively called twice: first in the test
 and then again in the `naturaltime` filter.

 Maybe a more robust way of testing would be to temporarily monkey-patch
 the `datetime.now()` function in the humanize tests.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16991#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to