Skip to content

Warning in test_labeled_data_unpacking.test_positional_parameter_names_as_function #5366

Closed
@mdboom

Description

@mdboom
matplotlib.tests.test_labeled_data_unpacking.test_positional_parameter_names_as_function ... /matplotlib/tests/test_labeled_data_unpacking.py:406: RuntimeWarning: Second argument is ambiguous: could be a color spec but is in data. Using as data.
Either rename the entry in data or use three arguments to plot.
  assert_equal(funcy(None, "x", "y1", data=data),
ok

@tacaswell: I think this warning is legit, and the test is testing it. In that case the test should put it in a catch_warnings block so it doesn't bubble out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions