Use new NOT_OVERWRITING_MSG from astropy when checking for file overwrite error message in logging test. Fallback on old error message for previous versions of astropy where it is unavailable. Tested locally using tox -v -e py39-test and tox -v -e py39-test-dev so should resolve current compatibility workflow failure. Resolves #497
Description
Use new
NOT_OVERWRITING_MSG
from astropy when checking for file overwrite error message in logging test. Fallback on old error message for previous versions of astropy where it is unavailable. Tested locally usingtox -v -e py39-test
andtox -v -e py39-test-dev
so should resolve current compatibility workflow failure. Resolves #497Checklist