Skip to content

TST: Investigate cache warnings in tests (currently ignored) #9620

Closed

Description

@pllim

Description

Un-ignore the following warnings and investigate whether they can be mitigated without being ignored whole-sale.

astropy/setup.cfg

Lines 115 to 116 in 6864219

ignore:Remote data cache could not be accessed due to NotADirectoryError
ignore:.*Cache directory cannot be read or created

Maybe @aarchiba can advise on the effort to address this issue.

Additional context

This is a follow-up of #7928

xref #9182 #9575 #9594

Activity

  1. aarchiba commented on Nov 19, 2019

    @aarchiba
    Contributor

    Running with -Werror should clarify - in a few cases I explicitly run tests where the cache is badly misconfigured, and in these cases we should demand emission of this warning (a warning because the code should fall back to no cache, but the user should know the cache isn't working). In other cases it may be being emitted when the cache is simply missing, and these are bugs.

    If the problem arises only on Windows, it may be possible to trigger it on other systems by using the context manager to enforce use of the "dumb" dbm backend; this may not work, as Windows sometimes produces different exceptions in problematic filesystem conditions.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions