For reasons that I don't care to investigate any further, the recwarn fixture wasn't working properly for this test, but catch_warnings seems to do the trick