  from django.test import override_settings, testcases
  from django.test.client import Client as DjangoClient
  from django.test.client import ClientHandler
  from django.test.client import RequestFactory as DjangoRequestFactory
  from django.utils import six
  from django.utils.encoding import force_bytes
  from django.utils.http import urlencode
  
  from rest_framework.compat import coreapi, requests
  from rest_framework.settings import api_settings
 
</s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add  </s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add  </s> remove from django.utils import six
 </s> add 
  from django.test import override_settings, testcases
  from django.test.client import Client as DjangoClient
  from django.test.client import ClientHandler
  from django.test.client import RequestFactory as DjangoRequestFactory

  from django.utils.encoding import force_bytes
  from django.utils.http import urlencode
  
  from rest_framework.compat import coreapi, requests
  from rest_framework.settings import api_settings
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/test.py