Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#12765 closed (duplicate)

syndication test fails with psycopg1 backend

Reported by: Karen Tracey Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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.

FAIL: test_rss2_feed (regressiontests.syndication.tests.SyndicationFeedTest)
Traceback (most recent call last):
  File "D:\u\kmt\django\trunk\tests\regressiontests\syndication\", line 67, in test_rss2_feed
    'copyright': 'Copyright (c) 2007, Sally Smith',
  File "D:\u\kmt\django\trunk\tests\regressiontests\syndication\", 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 Changed 8 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by Russell Keith-Magee

Component: UncategorizedDatabase layer (models, ORM)

comment:3 Changed 8 years ago by Karen Tracey

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 Changed 7 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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