Code

Opened 6 years ago

Closed 6 years ago

#7514 closed (fixed)

Test failure after r7716

Reported by: Alex Owned by: telenieko
Component: Contrib apps Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I am getting a test failure since r7716, the buildbot confirms it: http://buildbot.djangoproject.com/trunk%202.5%20sqlite/builds/498/step-test/0

Attachments (1)

7514.diff (524 bytes) - added by telenieko 6 years ago.
Clear SITE_CACHE on syncdb.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 years ago by telenieko

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

The error (which was discovered early) can be tracked down to the SITE_CACHE (defined in contrib/sites/models.py).

Clearing this cache on a post_syncdb signal solves this problem.

I'll attach a patch in a moment. Also will file a bug discovered in the way ;)

Changed 6 years ago by telenieko

Clear SITE_CACHE on syncdb.

comment:2 Changed 6 years ago by telenieko

  • Has patch set
  • Triage Stage changed from Unreviewed to Ready for checkin

Attached a fix, also available on my git repo.

comment:3 Changed 6 years ago by telenieko

  • Owner changed from nobody to telenieko
  • Status changed from new to assigned

comment:4 Changed 6 years ago by telenieko

  • Component changed from Uncategorized to Contrib apps

comment:5 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [7723]) Fixed #7514 -- Added code to clear the site cache on sync. This shouldn't have any effect on regular usage, but it does correct an error in the test suite. Thanks to Marc Fargas for the fix.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.