8000 warnings re: deprecated pytest API with pytest 3.8 · Issue #12107 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
warnings re: deprecated pytest API with pytest 3.8 #12107
Closed
@anntzer

Description

@anntzer

Running the test suite on master with pytest 3.8 gives a bunch of pytest internal warnings:

/home/antony/src/extern/matplotlib/lib/matplotlib/testing/conftest.py:37: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
  assert len(style_marker.args) == 1, \
/home/antony/src/extern/matplotlib/lib/matplotlib/testing/conftest.py:39: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
  style = style_marker.args[0]
/home/antony/src/extern/matplotlib/lib/matplotlib/testing/conftest.py:67: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
  baseline_images = request.keywords['baseline_images'].args[0]

@QuLogic looks like you wrote some of this (#7973), pinging you just in case you know how to update it :)

Note that we didn't see this on CI because CI uses pytest-xdist and the latter suppresses internal warnings (pytest-dev/pytest-xdist#338)...

I guess it would be moderately nice to fix this in 3.0 but it's certainly not release critical.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0