Add support for the ``pytest_runtest_logfinish`` hook which will be released in pytest 3.4.