  class Test2555Regression:
      def test_serializer_context(self):
          class NestedSerializer(serializers.Serializer):
              def __init__(self, *args, **kwargs):
                  super(NestedSerializer, self).__init__(*args, **kwargs)
                  # .context should not cache
                  self.context
  
          class ParentSerializer(serializers.Serializer):
              nested = NestedSerializer()
 
</s> remove             super(RequestsClient, self).__init__(*args, **kwargs)
 </s> add             super().__init__(*args, **kwargs) </s> remove         super(_UnvalidatedField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove             return super(CoreAPIClient, self).__init__(*args, **kwargs)
 </s> add             return super().__init__(*args, **kwargs) </s> remove         super(ReturnList, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(ReturnDict, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs)
                super().__init__(*args, **kwargs)
  class Test2555Regression:
      def test_serializer_context(self):
          class NestedSerializer(serializers.Serializer):
              def __init__(self, *args, **kwargs):
                super().__init__(*args, **kwargs)
                  # .context should not cache
                  self.context
  
          class ParentSerializer(serializers.Serializer):
              nested = NestedSerializer()
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_serializer.py