Running the tests in eg. tests/test_axes.py gives a pytest warning which indicates that any tests that use yield need changing
WC1 /home/dstansby/matplotlib/lib/matplotlib/tests/test_axes.py yield tests are deprecated, and scheduled to be removed in pytest 4.0