  
  @override_settings(ROOT_URLCONF='tests.test_htmlrenderer')
  class TemplateHTMLRendererTests(TestCase):
      def setUp(self):
          class MockResponse(object):
              template_name = None
          self.mock_response = MockResponse()
          self._monkey_patch_get_template()
  
      def _monkey_patch_get_template(self):
 
</s> remove         class MockView(object):
 </s> add         class MockView: </s> remove         class MockResponse(object):
 </s> add         class MockResponse: </s> remove         class MockView2(object):
 </s> add         class MockView2: </s> remove         class MockRequest(object):
 </s> add         class MockRequest: </s> remove         super(GetObjectOr404Tests, self).setUp()
 </s> add         super().setUp()
        class MockResponse:
  
  @override_settings(ROOT_URLCONF='tests.test_htmlrenderer')
  class TemplateHTMLRendererTests(TestCase):
      def setUp(self):
        class MockResponse:
              template_name = None
          self.mock_response = MockResponse()
          self._monkey_patch_get_template()
  
      def _monkey_patch_get_template(self):
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_htmlrenderer.py