  import sys
  from cStringIO import StringIO
  from django.conf import settings
  from django.core.handlers.base import BaseHandler
  from django.core.handlers.wsgi import WSGIRequest
  from django.core.signals import got_request_exception
 
</s> remove         if response.status_code != 302 or response['Location'] != path:
 </s> add         if (response.status_code != 302 or 
                urlparse(response['Location'])[2] != path): </s> remove         login_path, data = response['Location'].split('?')
 </s> add         _, _, login_path, _, data, _= urlparse(response['Location'])
from urlparse import urlparse
  import sys
  from cStringIO import StringIO
from urlparse import urlparse
  from django.conf import settings
  from django.core.handlers.base import BaseHandler
  from django.core.handlers.wsgi import WSGIRequest
  from django.core.signals import got_request_exception
keep add keep keep keep keep
 Fixed #3210 -- Modified test Client.login() to use urlparse, allowing absolute URLs in the Location header. Thanks, Ben Dean Kawamura.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4540 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/test/client.py