Skip to content

Test for warnings when writing read-only cache - #9575

Merged
pllim merged 1 commit into
astropy:masterfrom
aarchiba:data-warnings
Nov 9, 2019
Merged

pllim merged 1 commit into
astropy:masterfrom
aarchiba:data-warnings

Conversation

@aarchiba

@aarchiba aarchiba commented Nov 9, 2019

Copy link
Copy Markdown
Contributor

This pull request is part of #7928 and addresses the problem more directly than #9569 . In particular this version tries to ensure that CacheMissingWarnings are raised if and only if the user's intended operation needs to write to a read-only cache. (Or if the user needs to read from a non-existent cache.)

@astropy-bot astropy-bot Bot added the utils label Nov 9, 2019
@pllim pllim added the Affects-dev PRs and issues that do not impact an existing Astropy release label Nov 9, 2019
@pllim pllim added this to the v4.0 milestone Nov 9, 2019

@pllim pllim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely cleaner than my attempt. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Affects-dev PRs and issues that do not impact an existing Astropy release utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants