Fix deprecation warning for compute_leading_term #27281
Open
Description
This deprecation warning doesn't work:
In [1]: x.compute_leading_term(x)
...
TypeError: SymPyDeprecationWarning.__init__() got an unexpected keyword argument 'feature'
This is why we need tests for things that are deprecated. This has already been released in SymPy 1.12 and 1.13 now and is broken so at this stage it would be best just to delete this method rather than fixing the deprecation warning.
Originally posted by @oscarbenjamin in #23844 (comment)