  import StringIO
  import datetime
  
  from django.test import TestCase
  
  from rest_framework import serializers
 
</s> remove from StringIO import StringIO
 </s> add from rest_framework.compat import StringIO </s> remove from StringIO import StringIO
 </s> add from rest_framework.compat import StringIO </s> remove from StringIO import StringIO
 </s> add from rest_framework.compat import StringIO </s> remove from django.utils.encoding import smart_unicode
 </s> add try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text </s> remove from django.utils.encoding import smart_unicode, DjangoUnicodeDecodeError
 </s> add from django.utils.encoding import DjangoUnicodeDecodeError
try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text
from rest_framework.compat import StringIO

from rest_framework.compat import StringIO

  import datetime
  
  from django.test import TestCase
  
  from rest_framework import serializers
replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/tests/files.py