On 10 April 2012 16:50, Jeroen Demeyer <[email protected]> wrote: > On 2012-04-10 16:53, John Cremona wrote: >> How should I deal with a doctest which produces a DeprecationWarning? > I would say that a doctest should not produce a deprecation warning. > > The point of deprecations is usually that whatever you are doing should > be done in a different way. It should be easy to change the test such > that it doesn't use anything deprecated. If it's not easy, then that > feature probably should not be deprecated.
Fair enough. This was in reviewing someone else's patch, where in all but one place where the deprecation might have occurred the author had rewritten the code so as not to produce the warning. I just did the same for the last one and put it into a reviewer's patch. John > > -- > To post to this group, send an email to [email protected] > To unsubscribe from this group, send an email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
