Add support for pytest 4.1.