Skip to content

Commit

Permalink
Fixed #7531 -- Modified the sites test so that user-provided initial …
Browse files Browse the repository at this point in the history
…data doesn't cause breakage when executed from within user applications. Thanks for the report, madkinder@gmail.com.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Jun 25, 2008
1 parent 922f62c commit 87a704c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/sites/tests.py
Expand Up @@ -2,8 +2,8 @@
>>> # Make sure that get_current() does not return a deleted Site object. >>> # Make sure that get_current() does not return a deleted Site object.
>>> from django.contrib.sites.models import Site >>> from django.contrib.sites.models import Site
>>> s = Site.objects.get_current() >>> s = Site.objects.get_current()
>>> s >>> isinstance(s, Site)
<Site: example.com> True
>>> s.delete() >>> s.delete()
>>> Site.objects.get_current() >>> Site.objects.get_current()
Expand Down

0 comments on commit 87a704c

Please sign in to comment.