Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#12765 closed (duplicate)

syndication test fails with psycopg1 backend

Reported by: kmtracey 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 7 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 years ago by russellm

  • Component changed from Uncategorized to Database layer (models, ORM)

comment:3 Changed 6 years ago by kmtracey

  • Resolution set to duplicate
  • Status changed from new to closed

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 5 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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