          url(r'^v2/', include((included, 'v2'), namespace='v2'))
      ]
  
      def setUp(self):
          super(TestHyperlinkedRelatedField, self).setUp()
  
          class MockQueryset(object):
              def get(self, pk):
                  return 'object %s' % pk
  
 
</s> remove         class MockQueryset(object):
 </s> add         class MockQueryset: </s> remove         super(GetObjectOr404Tests, self).setUp()
 </s> add         super().setUp() </s> remove class MockQueryset(object):
 </s> add class MockQueryset: </s> remove             raise ParseError('JSON parse error - %s' % six.text_type(exc))
 </s> add             raise ParseError('JSON parse error - %s' % str(exc)) </s> remove             raise ParseError('Multipart form parse error - %s' % six.text_type(exc))
 </s> add             raise ParseError('Multipart form parse error - %s' % str(exc))
        super().setUp()
          url(r'^v2/', include((included, 'v2'), namespace='v2'))
      ]
  
      def setUp(self):
        super().setUp()
  
          class MockQueryset(object):
              def get(self, pk):
                  return 'object %s' % pk
  
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_versioning.py