a8fe95c5b6
This test has been passing since b023ebd0b5340a666df83e3fc0b72d7734636e04, so I removed the xfail. I also rewrote the test to use pytest.raises.