#26126: Transient failure of 
requests.tests.RequestsTests.test_max_age_expiration
-------------------------------------+-------------------------------------
     Reporter:  charettes            |                    Owner:
         Type:                       |  berkerpeksag
  Cleanup/optimization               |                   Status:  assigned
    Component:  Testing framework    |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by berkerpeksag):

 * cc: berker.peksag@… (added)
 * owner:  nobody => berkerpeksag
 * has_patch:  0 => 1
 * status:  new => assigned


Comment:

 Pull request: https://github.com/django/django/pull/6130

 Alternative solutions:

 * Make assertEqual check less strict: Don't check for the exact return
 value of `cookie_date()`.
 * Convert assertEqual to assertIn and check if the return value is
 `time.time() + 10 + 1` or `time.time() + 10 - 1`. This is simpler than the
 first solution.
 * Mock `cookie_date()` in `HttpResponseBase.set_cookie()`.

--
Ticket URL: <https://code.djangoproject.com/ticket/26126#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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.416769a2c0653db1190914c8b0e6f9d6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to