Closed astrofrog closed 10 years ago
A simple way would be to only test the latest version and skip the test on older versions as described here: https://gammapy.readthedocs.org/en/latest/development/index.html#skip-unit-tests-for-some-astropy-versions
I think that's acceptable (at least in this case), no need to put too much thought / coding effort into testing old, soon outdated versions.
Good idea, I'll do that
Do you think a test helper decorator (something like requires_astropy('>0.4')
) would be useful enough to be worth implementing in Astropy?
@cdeil - see attached fix, which essentially does this
@cdeil - and yes, I think we might want to have some kind of helper in astropy since this will be common.
In Astropy 1.0.dev there is a subtle change in Galactic <-> FK5 conversion which is causing two tests to fail. One of these is an image test. We need to find a good mechanism for dealing with reference images that change with versions of e.g. astropy (or matplotlib).