astropy/astropy — pull request #1871 by eteq (2013-12-06 20:34:27+00:00)
Title: Make `AstropyDeprecationWarning`s appear by default in py2.7

This came up in a discussion in astropy/astropy-APEs#2 . As it stands right now, `AstropyDeprecationWarning`s are *not* shown when they are raised with `warnings.warn` in python 2.7. This is due to python's default behavior of hiding `DeprecationWarning` (which is `AstropyDeprecationWarning`'s superclass) in py2.7 given that it is the last 2.x release.

This makes sense for *python* deprecations, but we probably *do* want user's to see our deprecation warnings, as they often deal with something they'll have to change in future astropy releases. So we should figure out how to adjust the defaults so that `AstropyDeprecationWarning` is shown by default and has to be manually turned off by the user.

cc @embray @astrofrog