home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 269348789

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
269348789 MDU6SXNzdWUyNjkzNDg3ODk= 1668 Remove use of allow_cleanup_failure in test_backends.py 1217238 open 0     6 2017-10-28T20:47:31Z 2019-09-29T20:07:03Z   MEMBER      

This exists for the benefit of Windows, on which trying to delete an open file results in an error. But really, it would be nice to have a test suite that doesn't leave any temporary files hanging around.

The main culprit is tests like this, where opening a file triggers an error: python with raises_regex(TypeError, 'pip install netcdf4'): open_dataset(tmp_file, engine='scipy')

The way to fix this is to use mocking of some sort, to intercept calls to backend file objects and close them afterwards.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1668/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 issue

Links from other tables

  • 3 rows from issues_id in issues_labels
  • 6 rows from issue in issue_comments
Powered by Datasette · Queries took 0.746ms · About: xarray-datasette