Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#12765 closed (duplicate)

syndication test fails with psycopg1 backend

Reported by: Karen Tracey Owned by: nobody
Component: Database layer (models, ORM) 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

This looks to have something to do with setting the timezone on the connection. My machine's time zone is one hour ahead of default settings TIME_ZONE. Other times this kind of problem has come up it would usually go away (as a workaround until the problem was identified) if the settings TIME_ZONE was set to match actual machine time zone. In this case that does not appear to make any difference.

............F..
======================================================================
FAIL: test_rss2_feed (regressiontests.syndication.tests.SyndicationFeedTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\u\kmt\django\trunk\tests\regressiontests\syndication\tests.py", line 67, in test_rss2_feed
    'copyright': 'Copyright (c) 2007, Sally Smith',
  File "D:\u\kmt\django\trunk\tests\regressiontests\syndication\tests.py", line 25, in assertChildNodeContent
    elem.getElementsByTagName(k)[0].firstChild.wholeText, v)
AssertionError: u'Thu, 03 Jan 2008 13:30:00 -0500' != 'Thu, 03 Jan 2008 13:30:00 -0600'

----------------------------------------------------------------------
Ran 15 tests in 4.726s

FAILED (failures=1)
Destroying test database 'default'...
Destroying test database 'other'...

Change History (4)

comment:1 by Alex Gaynor, 14 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Russell Keith-Magee, 14 years ago

Component: UncategorizedDatabase layer (models, ORM)

comment:3 by Karen Tracey, 14 years ago

Resolution: duplicate
Status: newclosed

Closing in favor of #12998, which I believe has the more correct description. This test is failing on Windows, it's not the postgresql DB backend that is the problem here -- it just happens that the only machine I have with the old pg backend is a windows box and I had not noticed this test failing on the other backends before I saw it fail with psycopg1.

comment:4 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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