Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#14329 closed (duplicate)

Seeing test failure in regressiontests.request since 13809

Reported by: Gabriel Hurley Owned by: Gabriel Hurley
Component: HTTP handling Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm getting the following test failure when I run the test suite using sqlite on Windows XP with Python 2.6.5 since [13809]:

======================================================================
FAIL: Doctest: regressiontests.requests.tests
----------------------------------------------------------------------
File "[...]\django-trunk\tests\regressiontests\requests\tests.py
", line 55, in regressiontests.requests.tests
Failed example:
    datetime_cookie['max-age']
Expected:
    10
Got:
    11

I don't have time to dig into it at the moment, but I'm guessing it's a timezone-related issue or something of the sort.

Change History (4)

comment:2 by Gabriel Hurley, 14 years ago

Owner: changed from nobody to Gabriel Hurley
Status: newassigned

yay! glad I'm not crazy.

I have the feeling the best solution here is just to convert that test to a unit test and use a less naive comparison for the max_age value... (we have always been at war with doctests)

comment:3 by Luke Plant, 14 years ago

Resolution: duplicate
Status: assignedclosed

Dupe of #14351

comment:4 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top