  
  
  class TestFileUploadParser(TestCase):
      def setUp(self):
          class MockRequest(object):
              pass
          self.stream = io.BytesIO(
              "Test text file".encode('utf-8')
          )
          request = MockRequest()
 
</s> remove         class MockResponse(object):
 </s> add         class MockResponse: </s> remove         super(GetObjectOr404Tests, self).setUp()
 </s> add         super().setUp() </s> remove         request = super(APIRequestFactory, self).request(**kwargs)
 </s> add         request = super().request(**kwargs) </s> remove         self.assertEqual(unicode_repr(ChildSerializer()), child_expected)
        self.assertEqual(unicode_repr(TestSerializer()), test_expected)
        self.assertEqual(unicode_repr(ChildSerializer()), child_expected)
 </s> add         self.assertEqual(repr(ChildSerializer()), child_expected)
        self.assertEqual(repr(TestSerializer()), test_expected)
        self.assertEqual(repr(ChildSerializer()), child_expected) </s> remove         content = six.b('qwerty')
 </s> add         content = b'qwerty'
        class MockRequest:
  
  
  class TestFileUploadParser(TestCase):
      def setUp(self):
        class MockRequest:
              pass
          self.stream = io.BytesIO(
              "Test text file".encode('utf-8')
          )
          request = MockRequest()
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_parsers.py