home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1204463757

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/6871#issuecomment-1204463757 https://api.github.com/repos/pydata/xarray/issues/6871 1204463757 IC_kwDOAMm_X85HyqiN 14371165 2022-08-03T20:44:15Z 2022-08-03T20:45:33Z MEMBER

``` __ ERROR at teardown of testassert_valid_xy _____ [gw1] linux -- Python 3.8.13 /home/runner/micromamba/envs/xarray-tests/bin/python

@pytest.fixture(scope="function", autouse=True)
def test_all_figures_closed():
    """meta-test to ensure all figures are closed at the end of a test

    Notes:  Scope is kept to module (only invoke this function once per test
    module) else tests cannot be run in parallel (locally). Disadvantage: only
    catches one open figure per run. May still give a false positive if tests
    are run in parallel.
    """
    yield None
  open_figs = len(plt.get_fignums())

E NameError: name 'plt' is not defined ``` Hmm, strange error. _assert_valid_xy has no matplotlib stuff so there should be no need to make sure all figures are closed. Oh well just adding the requires_matlplotlib solves this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1326509734
Powered by Datasette · Queries took 3.345ms · About: xarray-datasette