pytest 4.1 support: ``pytest_logwarning`` hook removed.