Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #7531 -- Modified the sites test so that user-provided initial …

…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...
commit 87a704cf50d4ac122b89a02f5a68f11ad5026524 1 parent 922f62c
Russell Keith-Magee authored June 25, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/sites/tests.py
4  django/contrib/sites/tests.py
@@ -2,8 +2,8 @@
2 2
 >>> # Make sure that get_current() does not return a deleted Site object.
3 3
 >>> from django.contrib.sites.models import Site
4 4
 >>> s = Site.objects.get_current()
5  
->>> s
6  
-<Site: example.com>
  5
+>>> isinstance(s, Site)
  6
+True
7 7
 
8 8
 >>> s.delete()
9 9
 >>> Site.objects.get_current()

0 notes on commit 87a704c

Please sign in to comment.
Something went wrong with that request. Please try again.