  # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  import sys
  
  from django.apps.registry import Apps, apps
  from django.contrib.contenttypes.fields import (
      GenericForeignKey, GenericRelation
  )
  from django.contrib.contenttypes import management
 
</s> remove import sys
 </s> add  </s> remove from django.utils.six import StringIO
 </s> add from django.test.utils import captured_stdout </s> remove import sys

 </s> add  </s> remove import sys
 </s> add 
  # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  


  from django.apps.registry import Apps, apps
  from django.contrib.contenttypes.fields import (
      GenericForeignKey, GenericRelation
  )
  from django.contrib.contenttypes import management
keep keep keep replace replace keep keep keep keep keep
 Fixed #23930 -- Added copies of captured_std* managers from CPython's test.support.

StringIO import was adapted for compatibility with Python 2. 
tests/contenttypes_tests/tests.py