Once we drop Python 2.4, we should use the context manager as shown at http://docs.python.org/library/warnings.html?highlight=warnings#testing-warnings. Before then, you will have use a warnings filter to turn warnings into errors as described at http://docs.python.org/library/warnings.html?highlight=warnings#the-warnings-filter. I think you might have to change it back after you are done.
Aaron Meurer On Mar 2, 2011, at 10:54 PM, smichr wrote: > Is there a standard way of detecting a DeprecationWarning the way > raised errors can be detected with raises()? > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
