  from django.core.files.uploadhandler import MemoryFileUploadHandler
  from django.test import TestCase
  from django.utils import unittest
  from rest_framework.compat import etree
  from rest_framework.compat import StringIO
  from rest_framework.exceptions import ParseError
  from rest_framework.parsers import FormParser, FileUploadParser
  from rest_framework.parsers import XMLParser
  import datetime
  
 
</s> remove from rest_framework.compat import yaml, etree, StringIO, BytesIO
 </s> add from rest_framework.compat import yaml, etree </s> remove from rest_framework.compat import etree, yaml, force_text, urlparse
 </s> add from django.utils.encoding import force_text
from rest_framework.compat import etree, yaml, urlparse
  from django.core.files.uploadhandler import MemoryFileUploadHandler
  from django.test import TestCase
  from django.utils import unittest
  from rest_framework.compat import etree

  from rest_framework.exceptions import ParseError
  from rest_framework.parsers import FormParser, FileUploadParser
  from rest_framework.parsers import XMLParser
  import datetime
  
keep keep keep keep replace keep keep keep keep keep
 Removed custom StringIO, force_text, smart_text compat 
tests/test_parsers.py