Fixes tests --no-raise-warnings being ignored