  from django.db import connections, models, router
  from django.test import TestCase
  from django.test.utils import override_settings
  from django.utils.encoding import force_str
  from django.utils.six import StringIO
  
  from .models import Author, Article, SchemeIncludedURL
  
  
  @override_settings(ROOT_URLCONF='contenttypes_tests.urls')
 
</s> remove from django.test.utils import override_settings
 </s> add from django.test.utils import captured_stdout, override_settings </s> remove from django.utils.six import BytesIO, StringIO
 </s> add from django.test.utils import captured_stderr
from django.utils.six import BytesIO </s> remove import sys

 </s> add 
  from django.db import connections, models, router
  from django.test import TestCase
  from django.test.utils import override_settings
  from django.utils.encoding import force_str

  
  from .models import Author, Article, SchemeIncludedURL
  
  
  @override_settings(ROOT_URLCONF='contenttypes_tests.urls')
keep keep keep keep 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