  from django.contrib.sessions.middleware import SessionMiddleware
  from django.core.files.uploadedfile import SimpleUploadedFile
  from django.http.request import RawPostDataException
  from django.test import TestCase, override_settings
  from django.utils import six
  
  from rest_framework import status
  from rest_framework.authentication import SessionAuthentication
  from rest_framework.parsers import BaseParser, FormParser, MultiPartParser
  from rest_framework.request import Request, WrappedAttributeError
 
</s> remove from django.utils.six import StringIO
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add 
  from django.contrib.sessions.middleware import SessionMiddleware
  from django.core.files.uploadedfile import SimpleUploadedFile
  from django.http.request import RawPostDataException
  from django.test import TestCase, override_settings

  
  from rest_framework import status
  from rest_framework.authentication import SessionAuthentication
  from rest_framework.parsers import BaseParser, FormParser, MultiPartParser
  from rest_framework.request import Request, WrappedAttributeError
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> 
tests/test_request.py