Fix pytest AttributeError Function object has no attribute get_marker

Pytest 4.1 removed a deprecated API, resulting in errors like:

AttributeError: ‘Function’ object has no attribute ‘get_marker’

The fix requires update of affiliated pytest-* packages to at least:

  • pytest-cov 2.6.1
  • pytest-remotedata 0.3.1

At this time, conda doesn’t handle this automatically, so if you are a conda user:

conda install pytest-cov pytest-remotedata

Similarly for other affected packages–look at the last few lines of the error to get a hint as to what package is affected.