Configure pytest to escalate warnings to errors during testing