Fix ``filterwarnings`` mark not registered