Django

Code

Ticket #7514 (closed: fixed)

Opened 6 months ago

Last modified 6 months ago

Test failure after r7716

Reported by: Alex Assigned to: telenieko
Milestone: Component: Contrib apps
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

7514.diff (0.5 kB) - added by telenieko on 06/20/08 16:18:34.
Clear SITE_CACHE on syncdb.

Change History

06/20/08 16:16:55 changed by telenieko

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

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 ;)

06/20/08 16:18:34 changed by telenieko

  • attachment 7514.diff added.

Clear SITE_CACHE on syncdb.

06/20/08 16:18:52 changed by telenieko

  • has_patch set to 1.
  • stage changed from Unreviewed to Ready for checkin.

Attached a fix, also available on my git repo.

06/20/08 17:28:34 changed by telenieko

  • owner changed from nobody to telenieko.
  • status changed from new to assigned.

06/20/08 17:29:12 changed by telenieko

  • component changed from Uncategorized to Contrib apps.

06/22/08 01:34:18 changed by russellm

  • status changed from assigned to closed.
  • resolution set to fixed.

(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/Change #7514 (Test failure after r7716)




Change Properties
Action