Use pytest-catchlog instead of pytest-capturelog.